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: more caching friendly with sorted storage keys #27

Merged
merged 1 commit into from
Aug 23, 2024

Conversation

xJonathanLEI
Copy link
Contributor

RPC caches rely on requests being identical to effectively cache responses. Sorting the storage keys avoids cache misses arising from the fact that we're taking HashMap keys. This sorting only happens on the host side - so no perf hit on client.

@xJonathanLEI xJonathanLEI requested a review from jtguibas August 23, 2024 02:35
@xJonathanLEI xJonathanLEI force-pushed the dev/sorted_storage_key branch from ef5fd3c to c9d5359 Compare August 23, 2024 16:57
@xJonathanLEI xJonathanLEI requested a review from puma314 August 23, 2024 21:25
@xJonathanLEI xJonathanLEI merged commit 378ccee into succinctlabs:main Aug 23, 2024
1 check passed
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