Commit Graph
652 Commits
Author SHA1 Message Date
Saleem Abdulrasool 67fdff5a25 Update CMakeLists.txt
Remove missing file.  Thanks to @stevenbrix for identifying this!

(cherry picked from commit 5e0a0149a4)
2022-10-19 17:58:47 -07:00
Karoy Lorentey 56be3ae3fd [PersistentSet] Adjust code after merge 2022-10-19 17:58:47 -07:00
Karoy Lorentey 25fd503fac [PersistentCollections] Fix up code added since c73a8caa originally landed
(cherry picked from commit 4c842df1b8)
2022-10-19 17:58:47 -07:00
Karoy Lorentey bceadab267 [PersistentCollections] Reduce popcount usages where possible
# Conflicts:
#	Sources/PersistentCollections/Node/_Node+Primitive Removals.swift

(cherry picked from commit e153ebf798)
2022-10-19 17:58:46 -07:00
Karoy Lorentey 6b516b72fb [PersistentCollections] Slightly more readable index descriptions
(cherry picked from commit 785caa4a55)
2022-10-19 17:58:46 -07:00
Karoy Lorentey 2e276ba42b [PersistentCollections] Clean up _Node.Builder & removals
This sanitizes the semantics of _Node.Builder, removing
the (unneccessary) need to pass around hash paths.

It also slightly refactors removal operations, but stops short of
implementing node shrinking.

# Conflicts:
#	Sources/PersistentCollections/Node/_Node+Builder.swift
#	Sources/PersistentCollections/Node/_Node+Initializers.swift
#	Sources/PersistentCollections/Node/_Node+Structural intersection.swift
#	Sources/PersistentCollections/Node/_Node+Structural subtracting.swift
#	Sources/PersistentCollections/Node/_Node+Subtree Modify.swift
#	Sources/PersistentCollections/Node/_Node+Subtree Removals.swift
#	Sources/PersistentCollections/PersistentDictionary/PersistentDictionary+Initializers.swift
#	Sources/PersistentCollections/PersistentSet/PersistentSet+SetAlgebra Initializers.swift
#	Sources/PersistentCollections/PersistentSet/PersistentSet+SetAlgebra intersection.swift
#	Sources/PersistentCollections/PersistentSet/PersistentSet+SetAlgebra subtracting.swift

(cherry picked from commit c73a8caad1)
2022-10-19 17:58:46 -07:00
Karoy Lorentey 60bc1ef058 Merge pull request #218 from lorentey/update-CMake
Update CMake configuration
2022-10-19 17:36:38 -07:00
Karoy Lorentey 3c6cb8cd56 Update CMake configuration 2022-10-19 17:35:13 -07:00
Karoy Lorentey 6f986e0dec Merge pull request #217 from lorentey/merge.1.0→1.1
Merge.1.0→1.1
2022-10-19 17:34:06 -07:00
Karoy Lorentey 381cf5d17e Merge branch 'release/1.0' into release/1.1 2022-10-19 15:50:34 -07:00
Karoy Lorentey a99e0d61df Merge pull request #216 from lorentey/review-set-relation-predicates
Review and finalize (?) set relation predicates for 1.1
2022-10-19 15:49:57 -07:00
Karoy Lorentey 734730d724 [OrderedSet] Split SetAlgebra predicates into individual files
This is to match the layout of all the other
SetAlgebra implementations in this package.
2022-10-19 15:20:30 -07:00
Karoy Lorentey 5dfd51238c [OrderedSet] Review, test, fix, and document set relation predicates 2022-10-19 15:20:30 -07:00
Karoy Lorentey 8ce8a6bc86 [PersistentSet] Review, test, fix, and document set relation predicates 2022-10-19 15:20:17 -07:00
Karoy Lorentey f843bd40bf [PersistentSet] Add update(_:at:) 2022-10-19 15:20:17 -07:00
Karoy Lorentey 001df8e325 [BitSet] Review, test, fix, and document set relation predicates
- Update documentation
- Improve performance where possible
- Add missing test coverage where needed
2022-10-19 15:20:17 -07:00
Karoy Lorentey 08e91c6360 Merge pull request #214 from lorentey/OrderedSet-doc-updates
[OrderedSet] Small doc updates/fixes
2022-10-19 13:15:40 -07:00
Karoy Lorentey 291623d391 [BitSet] Implement isEqual(to:) family of functions 2022-10-19 01:40:06 -07:00
Karoy Lorentey 86d429604c [BitSet] Doc updates 2022-10-19 01:40:06 -07:00
Karoy Lorentey 51a1554f89 Introduce _UniqueCollection & _SortedCollection
These marker-like protocols will allow certain
generic operations to get a performance boost
if the passed-in value happens to be guaranteed
to contain unique elements or to be sorted.

Also, review API checker protocols for Sets and
sorted collections and adjust things as needed.

BitSet gains custom implementations for min()
and max() as part of these improvements.
2022-10-19 01:40:06 -07:00
Karoy Lorentey f76630db8e [Internals] Add missing internal checking predicates & docs for all 2022-10-18 22:13:19 -07:00
Karoy Lorentey 2b4ec22949 [OrderedSet] Small doc updates/fixes 2022-10-18 22:03:29 -07:00
Karoy Lorentey 5b5651957b [PersistentSet] Doc updates 2022-10-18 21:57:46 -07:00
Karoy Lorentey b9d8637900 Merge pull request #213 from lorentey/update-package-manifest
[manifest] Exclude CMakeLists.txt; remove unnecessary path settings; reindent file
2022-10-18 21:54:30 -07:00
Karoy Lorentey 47db34662b Merge pull request #212 from lorentey/fix-readme
Update README files
2022-10-18 21:53:33 -07:00
Karoy Lorentey 02ea4e8492 [_CollectionsTestSupport] Move StringConvertibleValue under Utilities 2022-10-18 21:44:24 -07:00
Karoy Lorentey 03832459ac Update README files, harder this time 2022-10-18 21:28:26 -07:00
Karoy Lorentey 1490835b28 [manifest] Exclude CMakeLists.txt; remove unnecessary path settings; reindent 2022-10-18 20:44:46 -07:00
Karoy Lorentey 39bdcca7c9 Update README files
- Fix issues reported by @benrimmington (thanks!)
- Update wording on evolving Swift toolchain requirements
- Update contributor guide on adding a new data structure to better reflect reality
- Add an extra sentence on combinatorial tests
2022-10-16 17:06:32 -07:00
Karoy Lorentey ee833e0773 Merge pull request #210 from lorentey/heap-test-updates
[Heap] Prerelease preparations
2022-10-14 16:12:49 -07:00
Karoy Lorentey fc8092d044 [Heap] Small preparation for improving insert(contentsOf:) 2022-10-14 10:34:58 -07:00
Karoy Lorentey 2e9447fb1c [_CollectionsTestSupport] Richer support for combinatorial testing 2022-10-13 15:45:08 -07:00
Karoy Lorentey 098495b4ab [Heap] Add more exhaustive tests for some critical paths 2022-10-13 14:52:06 -07:00
Karoy Lorentey dc01b52a21 [Heap] Fix stray character in COLLECTION_INTERNAL_CHECKS condition 2022-10-13 14:51:04 -07:00
Karoy Lorentey fbebb69a1b [Heap] Doc updates 2022-10-13 14:50:18 -07:00
Karoy Lorentey 5f70117c55 [Heap] Start using _CollectionsTestSupport for testing 2022-10-12 16:30:52 -07:00
Karoy Lorentey 0f7db43847 Merge branch 'heap-replace-min-max' into release/1.1 2022-10-12 16:29:25 -07:00
Karoy Lorentey 03a30ba5d8 Merge pull request #201 from lorentey/stable-sort
[OrderedCollections] Update docs to state that the sort algorithm is stable
2022-10-12 16:26:21 -07:00
Karoy Lorentey 1228e9c162 [Heap] Update docs for replaceMin/replaceMax 2022-10-12 16:01:48 -07:00
Karoy Lorentey 7138144f37 [Heap] Remove unnecessary testing APIs
We do not need a _raw initializer in the Heap implementation. The
heapify algorithm will not modify storage if it’s already in the
expected shape, so we can simply define one locally that double checks
that the order remains unchanged.
2022-10-12 16:01:23 -07:00
Karoy Lorentey 92d808d179 Merge branch 'heap-replace-extrema' into release/1.1 2022-10-12 15:23:17 -07:00
Karoy Lorentey 51604cd196 [OrderedCollections] Oops, restore custom wording for areInIncreasingOrder variants 2022-10-12 15:11:57 -07:00
Karoy Lorentey 42a09cef24 Merge pull request #205 from lorentey/remove-SortedCollections-from-1.1
[1.1][SortedCollections] Remove for now
2022-10-11 18:03:50 -07:00
Karoy Lorentey b1506b6225 [SortedCollections] Remove for now
These are still on track for 1.2.0, but I’ll need to bump them from
the release/1.1 branch.
2022-10-11 17:55:35 -07:00
Karoy Lorentey 30f1bf166c Merge pull request #202 from compnerd/patch-1
Update CMakeLists.txt
2022-10-11 13:58:19 -07:00
Saleem Abdulrasool 2a81cb1186 Update CMakeLists.txt
Remove accidental reference to CMakeLists.txt as a source file.
2022-10-11 13:46:20 -07:00
Karoy Lorentey 89de13ff1b Merge pull request #200 from lorentey/update-cmake-for-1.1
Update CMake configuration in preparation for 1.1
2022-10-11 13:43:15 -07:00
Karoy Lorentey 4997e15320 [Xcode] Update to latest package versions 2022-10-11 13:38:55 -07:00
Karoy Lorentey a624614717 [OrderedCollections] Document that sort is stable (as of SE-0372) 2022-10-11 13:38:10 -07:00
Karoy Lorentey 5aed92655d [CMake] Update CMake build configuration 2022-10-11 13:11:37 -07:00