mirror of
https://github.com/StockSharp/StockSharp.git
synced 2026-12-05 00:51:48 +00:00
Every increment went through the increment builder into a whole new book, which the engine then rebuilt from scratch: the cost of a frame grew with the depth of the book, and a venue like Binance, which states 1000 levels and keeps every level it ever changes, sends ten frames a second per instrument. The broker stand's matcher spent its CPU on this with no order in it. Once a whole book stands, an increment now updates only the levels it names (OrderBook.UpdateLevel); a client order resting on a level stays, as before. Snapshots, snapshots stated in parts and positional books still go through the builder, and an increment that arrives while no whole book stands is still not folded. On a book of 700 to 3600 levels a side an increment costs 0.02-0.05 ms instead of 1.3-9 ms.