Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

More caching optimizations #2505

Merged
merged 1 commit into from
Oct 7, 2016
Merged

More caching optimizations #2505

merged 1 commit into from
Oct 7, 2016

Conversation

arkpar
Copy link
Collaborator

@arkpar arkpar commented Oct 6, 2016

No description provided.

@arkpar arkpar added A0-pleasereview 🤓 Pull request needs code review. B0-patch M4-core ⛓ Core client code / Rust. labels Oct 6, 2016
@@ -21,7 +21,7 @@ use util::sha3::*;
use bit_set::BitSet;
use super::super::instructions;

const CACHE_CODE_ITEMS: usize = 4096;
const CACHE_CODE_ITEMS: usize = 65536;
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Interim fix before this is made configurable.

/// Account was loaded from disk and never modified in this state object.
CleanFresh,
/// Account was loaded from the global cache and never modified.
CleanCached,
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This tracks accounts that were loaded from the global cache to be modified, but modification was reverted with the snapshot. In such case they won't be passed back to the global cache.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.0005%) to 86.436% when pulling 186c2e1 on cache-opt into 0c7a287 on master.

@gavofyork gavofyork merged commit 7756031 into master Oct 7, 2016
@gavofyork gavofyork added A8-looksgood 🦄 Pull request is reviewed well. and removed A0-pleasereview 🤓 Pull request needs code review. labels Oct 7, 2016
@gavofyork gavofyork deleted the cache-opt branch October 7, 2016 10:10
jacogr added a commit that referenced this pull request Oct 7, 2016
* commit '4655fd04a507d8c4e5b6cab28af54c64a0ba7186':
  Using pending block only if not old (#2514)
  Caching optimizations (#2505)
jacogr added a commit that referenced this pull request Oct 7, 2016
* js:
  Using pending block only if not old (#2514)
  Caching optimizations (#2505)
jacogr added a commit that referenced this pull request Oct 8, 2016
* js: (228 commits)
  registration in place
  Backports to master (#2530)
  lookup hash
  ethcore_hashContent call
  single input for commit/filename
  basic githubhint layout
  Handle reorganizations in the state cache (#2490)
  terminate after 30 seconds (#2513)
  allow updates of the secure token
  Using pending block only if not old (#2514)
  Caching optimizations (#2505)
  rework connection display
  basic test for manual token
  Fixed overflow panic in handshake_panic (#2495)
  Trim password from file (#2503)
  Fixing RPC Filter conversion to EthFilter (#2500)
  init token updates take place
  initial token connection - WIP
  Fixing error message for transactions (#2496)
  Adjustable stack size for EVM (#2483)
  ...

# Conflicts:
#	js/src/dapps/registry/Application/application.js
#	js/src/dapps/registry/Container.js
#	js/src/dapps/registry/actions.js
#	js/src/dapps/registry/reducers.js
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A8-looksgood 🦄 Pull request is reviewed well. M4-core ⛓ Core client code / Rust.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants