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

Memoize transaction related hashes #16056

Draft
wants to merge 3 commits into
base: compatible
Choose a base branch
from

Commits on Sep 16, 2024

  1. Allow to precompute transaction hashes

    Context: when staged ledger diff application is performed, some hash
    operations that are invoked do not depend on an underlying ledger, but
    only on the transaction.
    
    Problem: when staged ledger diff application is executed within context
    of block creation, these hashing routines unnecessarily slow down the
    block creation.
    
    Solution: allow to precompute certain values for a transaction and be
    supplied for staged ledger diff application.
    
    P.S. this commit is first in series, and it doesn't use precomputed data
    everywhere it could be used. Neither it updates block creation and tx
    pool.
    georgeee committed Sep 16, 2024
    Configuration menu
    Copy the full SHA
    c6d3809 View commit details
    Browse the repository at this point in the history
  2. Load precomputed derived token ids into masks

    Use derived token ids in masks: store them in masks and use instead of
    re-deriving them during update operations.
    georgeee committed Sep 16, 2024
    Configuration menu
    Copy the full SHA
    9b4c3e6 View commit details
    Browse the repository at this point in the history
  3. Precompute Actions.t hash

    georgeee committed Sep 16, 2024
    Configuration menu
    Copy the full SHA
    7b9e4ce View commit details
    Browse the repository at this point in the history