註冊並分享邀請連結,可獲得影片播放與邀請獎勵。

Cameron Winklevoss
@cameron
加入 February 2011
2.7K 正在關注    752K 粉絲
We're moving @Gemini ActiveTrader real-time market data processing off the main thread and into a dedicated web worker. The worker handles WebSocket message parsing and orderbook state management so that the UI thread can stay responsive even under heavy market activity. Check out these test results: -Before (main thread): ~30-40fps at 50x volume but starts deteriorating -After (web worker): ~100fps at 50x volume -Bonus: we still hit ~100fps at 500x, since the worker does the heavy lifting and sends orderbook snapshots every 50ms Overall, we've achieved a 2.5x performance improvement. In addition to the worker, we optimized the rendering pipeline by eliminating unnecessary memoization overhead, using static selectors on hot paths, and throttling visual-only components that render thrash (e.g., depth chart). Outcome: when BTC is going parabolic, you will have a UI that keeps up.
顯示更多
0
11
75
12
轉發到社區