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

Separate balance and nonce into different memory locations #9

Open
hai-rise opened this issue Apr 19, 2024 · 0 comments
Open

Separate balance and nonce into different memory locations #9

hai-rise opened this issue Apr 19, 2024 · 0 comments
Labels
enhancement New feature or request experimental

Comments

@hai-rise
Copy link
Contributor

hai-rise commented Apr 19, 2024

pevm/src/lib.rs

Lines 33 to 34 in 816c6e6

// TODO: Separate an account's balance and nonce?
Basic(Address),

Basic(AccountBasic),

  • Potential gain: reduce write records as recipients don't need to record unchanged nonce anymore.
  • Potential loss: increase read friction as now we need 2 locks to read balance and nonce instead of reading both at once, and all basic requests need both.
@hai-rise hai-rise added enhancement New feature or request V1 labels Apr 19, 2024
@hai-rise hai-rise self-assigned this Jun 24, 2024
@hai-rise hai-rise changed the title Better and more modular "memory location" control to maximise performance Better and more modular "memory location" control to maximise parallelism Jul 4, 2024
@hai-rise hai-rise removed the V1 label Sep 4, 2024
@hai-rise hai-rise changed the title Better and more modular "memory location" control to maximise parallelism Separate balance and nonce into different memory locations Sep 4, 2024
@hai-rise hai-rise removed their assignment Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request experimental
Projects
None yet
Development

No branches or pull requests

1 participant