You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in backend.go we have function with: stateSync := stages2.NewInMemoryExecution
this function called on every block
means we re-create stagedsync.Sync object on each block - means loosing some caches (like D_LRU cache which binded to ExecuteBlockCfg.applyWorker object)
We do this way: because Notifications object seems passed from outside - but i'm not sure why/where do we need it.
Need somehow simplify it and create stagedsync.Sync object once at startup (same as notification object dedicated for inMemoryExecution).
The text was updated successfully, but these errors were encountered:
AskAlexSharov
changed the title
inMemoryExecution: pre-alloc sync object
inMemoryExecution: don't create new StagedSync object for each block
Nov 21, 2024
AskAlexSharov
changed the title
inMemoryExecution: don't create new StagedSync object for each block
inMemoryExecution: don't create new StagedSync for each block
Nov 21, 2024
in backend.go we have function with:
stateSync := stages2.NewInMemoryExecution
this function called on every block
means we re-create
stagedsync.Sync
object on each block - means loosing some caches (likeD_LRU
cache which binded toExecuteBlockCfg.applyWorker
object)We do this way: because
Notifications
object seems passed from outside - but i'm not sure why/where do we need it.Need somehow simplify it and create
stagedsync.Sync
object once at startup (same asnotification
object dedicated for inMemoryExecution).The text was updated successfully, but these errors were encountered: