You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SR-8190 Introduce a RingBuffer to the Standard Library
Issue Description:
SynchronizedQueue in the Basic library is using Array.removeFirst() to implement dequeueing which is O👎 in the length of the array making the dequeue operation quadratic in the number of dequeues. It is not a huge bottleneck because it’s all array memory ops, but a (growable) ring buffer or a future Deque-like thing in Swift’s Standard Library would make for a better backing store.
The text was updated successfully, but these errors were encountered:
emojifies as that, and I'm leaving it. Anyhow, this bug can be fixed one of two ways, but both are going to involve a new kind of backing data structure. There's the way that just fixes SwiftPM's library, and there's the way where SR-8190 gets implemented, then this gets squashed afterwards.
Additional Detail from JIRA
md5: 7d5f08f9fb8b80be909346608f5e40c2
relates to:
Issue Description:
SynchronizedQueue in the Basic library is using Array.removeFirst() to implement dequeueing which is O👎 in the length of the array making the dequeue operation quadratic in the number of dequeues. It is not a huge bottleneck because it’s all array memory ops, but a (growable) ring buffer or a future Deque-like thing in Swift’s Standard Library would make for a better backing store.
The text was updated successfully, but these errors were encountered: