Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
muzarski opened this issue Dec 4, 2024 · 0 comments

Comments

@muzarski
Copy link
Collaborator

muzarski commented Dec 4, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant