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

perf: account alias lookup #2191

Merged
merged 1 commit into from
Jul 29, 2024
Merged

Conversation

antazoey
Copy link
Member

What I did

In [7]: %time accounts.load("laughing-sepolia-safe")
CPU times: user 566 µs, sys: 497 µs, total: 1.06 ms
Wall time: 729 µs
Out[7]: <SafeAccount 0x872Df5f6CF2C2Eaa9e7511AB079D263AB8fdc79f>

In [8]: %time accounts.load("laughing-sepolia-safe")
CPU times: user 7 µs, sys: 1e+03 ns, total: 8 µs
Wall time: 9.78 µs
Out[8]: <SafeAccount 0x872Df5f6CF2C2Eaa9e7511AB079D263AB8fdc79f>

Note: Some accounts plugins a bit slower than others on first load.

How I did it

How to verify it

Checklist

  • All changes are completed
  • New test cases have been added
  • Documentation has been updated

@antazoey antazoey merged commit 34bee0a into ApeWorX:main Jul 29, 2024
15 checks passed
@antazoey antazoey deleted the perf/account-load branch July 29, 2024 12:42
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