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

Zero-copy result row #906

Open
penberg opened this issue Feb 6, 2025 · 1 comment
Open

Zero-copy result row #906

penberg opened this issue Feb 6, 2025 · 1 comment
Labels
enhancement New feature or request performance

Comments

@penberg
Copy link
Collaborator

penberg commented Feb 6, 2025

We now keep even strings as byte vector in OwnedValue. Next step is to teach OwnedValue about blobs and strings that are managed by someone else and the figure out if we can just pin the btree page somehow and point there. This would be essentially zero-copy to return result row to apps, following SQLite's design.

@pedrocarlo
Copy link
Contributor

Hi @penberg. Do you know in what situations SQLite values should be static and not dynamic? Because I was trying to find it in sqlite source code, but it was not obvious to me the flow of data where the static data is referenced and when it will not be used anymore. This would help me understand the lifetime of the value so that I can attempt to do a zerocopy operation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request performance
Projects
None yet
Development

No branches or pull requests

2 participants