XChange icon indicating copy to clipboard operation
XChange copied to clipboard

[core] Order book synchronized

Open rizer1980 opened this issue 2 years ago • 3 comments

Added OrderBook synchronization through the StampedLock mechanism, which is much faster and more flexible than usual Synhcronzed. That gives us the opportunity to receive a full copy of the orderbook without a chance to get an Concurrent exception.

rizer1980 avatar Jun 23 '23 11:06 rizer1980

bump

rizer1980 avatar Dec 22 '23 07:12 rizer1980

ping

rizer1980 avatar Apr 08 '24 09:04 rizer1980

It's hard for me to tell if this PR works as designed in addition to not breaking things for someone relying on this.

timmolter avatar Apr 08 '24 10:04 timmolter

added concurrency tests.

  1. New way, in use StampedLock
  2. Old way, Stampdelock wrapped in Synchonized

rizer1980 avatar May 23 '24 21:05 rizer1980