scylladb / scylladb/cpp-rs-driver

binding: Do not allocate vector when retrieving matching indexes from bind markers metadata

Open
#214 1 comment 0 reactions 1 assignee View on GitHub

@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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.