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

Make index faster by faster checking for uncommon or more rare ordinals #702

Merged
merged 4 commits into from
Oct 25, 2022

Conversation

veryordinally
Copy link
Collaborator

Working on #371 starting with a trivial improvement:

Replace check for uncommon or better rarity by specialized, more efficient method. This line in index_transaction accounted 70% of the time in index_transaction, so it's worth the more verbose, less general method.

There's more potential here, as self.epoch() can likely be sped up significantly - the binary search takes an inordinate amount of time still.

…cient call. This method call contributed for 70% of the time in index_transaction, so it's worth the more verbose, less general method.

There's more potential here, as self.epoch() can likely be sped up significantly - the binary search takes an inordinate amount of time still.
@veryordinally
Copy link
Collaborator Author

I tried to do this separate from #703 but am also Github challenged.

@casey casey reopened this Oct 25, 2022
@casey casey merged commit c5227b3 into ordinals:master Oct 25, 2022
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

2 participants