scylladb / scylladb/cpp-rs-driver
binding: Do not allocate vector when retrieving matching indexes from bind markers metadata
Open
@Lorak-mmk is already working on this.
Since Feb 25, 2026.
P2
- Dominant language
- C++
- Stars
- 26
- Forks
- 19
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 7
Description
Currently, CassStatement::bind_multiple_values_by_name accepts a slice of usizes. The caller creates a vector from an iterator, and passes the reference to this vector. The allocation could be omitted there, by passing an iterator directly to bind_multiple_values_by_name. The issue is, however, that the aforementioned iterator borrows from &self, and bind_multiple_values_by_name accepts &mut self.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.