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

Faster bulk inserts #3

Merged
merged 1 commit into from
Jun 19, 2021
Merged

Faster bulk inserts #3

merged 1 commit into from
Jun 19, 2021

Conversation

kelindar
Copy link
Owner

This speeds up the bulk inserts by checking the last page first before scanning from the beginning to find an index in order to perform the insertion. In the (most likely) case that there's space at the tail, we add the item there. Note that we'd still perform the full scan if the last page is slow, this case will need to be optimized.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
@kelindar kelindar merged commit 68cbe36 into main Jun 19, 2021
@kelindar kelindar deleted the insert branch June 19, 2021 21:18
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.

None yet

1 participant