Commit 4ada602
store: Replace std::sync::RwLock with parking_lot::RwLock in BlockStore
Replace std::sync::RwLock with parking_lot::RwLock for the chain
stores map in BlockStore. This reduces lock contention when looking
up or modifying chain stores.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent c935301 commit 4ada602
1 file changed
Lines changed: 5 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
6 | 4 | | |
7 | 5 | | |
8 | 6 | | |
| |||
321 | 319 | | |
322 | 320 | | |
323 | 321 | | |
324 | | - | |
325 | 322 | | |
326 | 323 | | |
327 | 324 | | |
| |||
410 | 407 | | |
411 | 408 | | |
412 | 409 | | |
413 | | - | |
414 | 410 | | |
415 | 411 | | |
416 | 412 | | |
| |||
475 | 471 | | |
476 | 472 | | |
477 | 473 | | |
478 | | - | |
479 | | - | |
480 | | - | |
481 | | - | |
482 | | - | |
483 | | - | |
| 474 | + | |
484 | 475 | | |
485 | 476 | | |
486 | 477 | | |
| |||
506 | 497 | | |
507 | 498 | | |
508 | 499 | | |
509 | | - | |
| 500 | + | |
510 | 501 | | |
511 | 502 | | |
512 | 503 | | |
| |||
516 | 507 | | |
517 | 508 | | |
518 | 509 | | |
519 | | - | |
520 | 510 | | |
521 | 511 | | |
522 | 512 | | |
| |||
0 commit comments