Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

improve EOS VM OC cache lookup performance via hashed index #9740

Merged
merged 1 commit into from Dec 7, 2020

Conversation

spoonincode
Copy link
Contributor

Change Description

The OC code cache was using an ordered index for the cache lookup. This results in surprisingly expensive lookups compared to a hashed index which suffices for this use case. Switch over to a hashed index.

Frees over 1% of main thread time on a busy chain in my tests. Actual results will vary depending on chain activity, hardware, etc

Change Type

Select ONE

  • Documentation
  • Stability bug fix
  • Other
  • Other - special case

Consensus Changes

  • Consensus Changes

API Changes

  • API Changes

Documentation Additions

  • Documentation Additions

@heifner
Copy link
Contributor

heifner commented Dec 4, 2020

LGTM

@spoonincode spoonincode merged commit f554afd into develop Dec 7, 2020
@spoonincode spoonincode deleted the oc_cc_ordered_to_hash branch December 7, 2020 16:12
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants