apple / swift-collections

Commonly used data structures for Swift
Apache License 2.0
3.55k stars 270 forks source link

[Heap] insert(contentsOf:) Switch to Floyd’s if we’re inserting too many items #327

Closed lorentey closed 6 months ago

lorentey commented 6 months ago

Resolves #325.

The new code is already covered by the test_insert_contentsOf_exhaustive test, which exercises everything.

Checklist

lorentey commented 6 months ago

@swift-ci test

lorentey commented 6 months ago

macOS PR tests are expected to fail due to rdar://117169742. This is fine. 🔥