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

BlockIndex tuple caching #113

Open
flexatone opened this issue May 16, 2023 · 0 comments
Open

BlockIndex tuple caching #113

flexatone opened this issue May 16, 2023 · 0 comments

Comments

@flexatone
Copy link
Contributor

Each block index could store a C-array of PyObject*, of length equal to the BlockIndex. As tuples are created, they could be stored in this array for re-use later. On cleanup, all these tuples would be decrefed. This would not permit reusing tuples across different BlockIndex, but would permit faster usage on any second access. These would not need to be copied or pickled, so those benefits would remain.

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