Skip to content

Add Cython acceleration for result set decode#197

Open
TheDistributor wants to merge 9 commits into
masterfrom
mgallwey/use-cython-for-hottest-paths
Open

Add Cython acceleration for result set decode#197
TheDistributor wants to merge 9 commits into
masterfrom
mgallwey/use-cython-for-hottest-paths

Conversation

@TheDistributor

Copy link
Copy Markdown

~9× speedup on large fetches by decoding wire-format batches in C instead of Python. Falls back to pure Python if the extension isn't built.

Martin Gallwey added 8 commits June 29, 2026 23:54
~9× speedup on large fetches by decoding wire-format batches in C
instead of Python. Falls back to pure Python if the extension isn't built.
@TheDistributor TheDistributor self-assigned this Jun 29, 2026
@madscientist

Copy link
Copy Markdown
Contributor

@TheDistributor please don't open your PR until it's done and tested and you're ready for it to be reviewed. Else we get spammed with email about every new commit :)

@madscientist

Copy link
Copy Markdown
Contributor

This needs a larger discussion with @rshaull etc. There is the effort to use the C driver which seems to overlap with this. There are issues with supporting python 2, which I don't think this was tested with. There are tests that need to be made to ensure that we can still build and use the driver even if the user doesn't have all the cython infrastructure or a C compiler. There are discussions that need to happen about how we distribute the driver (via pypi or whatever) if it has a compiled component; do we have to build and upload wheels for various different platforms? Or...?

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

Successfully merging this pull request may close these issues.

2 participants