Skip to content

perf(engine): reduce write lock hold time in save_cache#23350

Open
AKABABA-ETH wants to merge 1 commit intoparadigmxyz:mainfrom
AKABABA-ETH:rwlock
Open

perf(engine): reduce write lock hold time in save_cache#23350
AKABABA-ETH wants to merge 1 commit intoparadigmxyz:mainfrom
AKABABA-ETH:rwlock

Conversation

@AKABABA-ETH
Copy link
Copy Markdown
Contributor

Moved expensive operations (insert_state, update_metrics, recv) outside the write lock in save_cache(). The lock is now only held for the final quick assignment, reducing block time from tens of milliseconds to microseconds.

Moved expensive operations (`insert_state`, `update_metrics`, `recv`) outside the write lock in `save_cache()`. The lock is now only held for the final quick assignment, reducing block time from tens of milliseconds to microseconds.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

1 participant