Register and share your invite link to earn from video plays and referrals.

Cameron Winklevoss
@cameron
Joined February 2011
2.7K Following    752K Followers
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.
Show more