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

Only fetch inscriptions that are owned by the ord wallet #2310

Merged
merged 1 commit into from
Aug 10, 2023

Conversation

gmart7t2
Copy link
Contributor

This makes most ord commands run a few hundred times faster:

before:

$ time ord wallet balance > /dev/null
real	3m39.900s, user	0m23.681s, sys	0m20.880s

after:

$ time ord wallet balance > /dev/null
real	0m0.648s, user	0m0.025s, sys	0m0.199s
$ time ord wallet balance > /dev/null
real	0m0.477s, user	0m0.010s, sys	0m0.095s
$ time ord wallet balance > /dev/null
real	0m0.415s, user	0m0.021s, sys	0m0.067s

src/index.rs Show resolved Hide resolved
Copy link
Collaborator

@raphjaph raphjaph left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great improvement! Going through 22million inscriptions probably wasn't the most efficient way.

@raphjaph raphjaph merged commit fb0b1e8 into ordinals:master Aug 10, 2023
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