A linked list used to track active socket connections caused performance issues during reconnect storms under poor network conditions. While O(1) add/remove operations seemed ideal, iterating the list on the main thread during high network churn caused frame drops that only appeared after several minutes of instability. The fix was snapshotting the list to an array before iterating, preventing live traversal on the UI thread.
•1m watch time
Sort: