Skip to content

Commit 478d3cc

Browse files
committed
Update swift-collections-benchmark scheme.
Signed-off-by: Vihan Bhargava <[email protected]>
1 parent 62adcfa commit 478d3cc

File tree

3 files changed

+6
-40
lines changed

3 files changed

+6
-40
lines changed

.swiftpm/xcode/xcshareddata/xcschemes/swift-collections-benchmark.xcscheme

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -95,26 +95,6 @@
9595
argument = "run"
9696
isEnabled = "YES">
9797
</CommandLineArgument>
98-
<CommandLineArgument
99-
argument = "-f"
100-
isEnabled = "YES">
101-
</CommandLineArgument>
102-
<CommandLineArgument
103-
argument = "SortedDictionary.*init"
104-
isEnabled = "YES">
105-
</CommandLineArgument>
106-
<CommandLineArgument
107-
argument = "/Users/vihan/Documents/swift-collections/output"
108-
isEnabled = "YES">
109-
</CommandLineArgument>
110-
<CommandLineArgument
111-
argument = "--mode"
112-
isEnabled = "YES">
113-
</CommandLineArgument>
114-
<CommandLineArgument
115-
argument = "replace-all"
116-
isEnabled = "YES">
117-
</CommandLineArgument>
11898
</CommandLineArguments>
11999
</LaunchAction>
120100
<ProfileAction

Sources/SortedCollections/BTree/_BTree+Partial RangeReplaceableCollection.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ extension _BTree {
3131

3232
/// Removes the first element of a tree, if it exists.
3333
///
34-
/// - Returns: The moved first element of the tree.
34+
/// - Returns: The moved last element of the tree.
3535
@inlinable
3636
@discardableResult
3737
internal mutating func popLast() -> Element? {

Sources/SortedCollections/BTree/_BTree+UnsafeCursor.swift

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,10 @@
1212
extension _BTree {
1313
/// A mutable cursor to an element of the B-Tree represented as a path.
1414
///
15-
/// There are two variants of a B-Tree cursor, a 'concrete' cursor which points at a specific element which
16-
/// already exists in the tree, and a 'non-concrete' cursor which points to a specific slot, representing an
17-
/// element which does not exist within the tree. It is therefore an invalid operation to operate on a
18-
/// non-concrete cursor's element (as it may be out-of-bounds). However, you can convert a
19-
/// non-concrete cursor to a concrete cursor using the
20-
/// ``_BTree.UnsafeCursor.makeConcrete()`` operation. Concrete cursor checks are no-ops in
21-
/// non-debug builds.
22-
///
2315
/// Cursors consume the original tree on which they were created. It is undefined behavior to operate or
24-
/// read a tree on which a cursor was created. While this is the case, the original tree must remain alive
25-
/// for the entire lifetime of a cursor. Certain cursor operations, will yield a new tree root which can be
26-
/// used to obtain a usable tree reference. It is invalid to use a cursor after such operations.
27-
///
28-
/// If you wish to retrieve your tree and an operation yielding a new tree root has not been called yet, you
29-
/// may use ``_BTree.UnsafeCursor.finish()``.
16+
/// read a tree on which a cursor was created. A cursor strongly references the tree on which it was
17+
/// operating on. Once operations with a cursor are finished, the tree can be restored using
18+
/// `_BTree.UnsafeCursor.apply(to:)`.
3019
///
3120
/// This is a heavier alternative to ``_BTree.Index``, however this allows mutable operations to be
3221
/// efficiently performed.
@@ -380,9 +369,7 @@ extension _BTree {
380369
/// the cursors lifetime.
381370
///
382371
/// - Parameter key: The key to search for
383-
/// - Returns: A `cursor` to the key or where the key should be inserted, and a `found`
384-
/// parameter indicating whether or not the key exists within the tree, iff `found` is true, the cursor
385-
/// is concrete.
372+
/// - Returns: A cursor to the key or where the key should be inserted.
386373
/// - Complexity: O(`log n`)
387374
@inlinable
388375
internal mutating func takeCursor(at index: Index) -> UnsafeCursor {
@@ -441,8 +428,7 @@ extension _BTree {
441428
///
442429
/// - Parameter key: The key to search for
443430
/// - Returns: A `cursor` to the key or where the key should be inserted, and a `found`
444-
/// parameter indicating whether or not the key exists within the tree, iff `found` is true, the cursor
445-
/// is concrete.
431+
/// parameter indicating whether or not the key exists within the tree.
446432
/// - Complexity: O(`log n`)
447433
@inlinable
448434
internal mutating func takeCursor(

0 commit comments

Comments
 (0)