Karoy Lorentey
bae950193f
[BitArray] Add Custom[Debug]StringConvertible and CustomReflectable conformances
2022-08-26 14:19:56 -07:00
Karoy Lorentey
1217b3289a
[BitSet] Fix index offsetting
2022-08-26 01:04:18 -07:00
Karoy Lorentey
54d47c1e23
[BitSet] Add docs.
2022-08-26 00:09:13 -07:00
Karoy Lorentey
5bc22eaf9b
[BitArray] Add docs.
2022-08-25 23:50:35 -07:00
Karoy Lorentey
fcac09d86a
[BitSet, BitArray] Add random factories
2022-08-25 22:21:34 -07:00
Karoy Lorentey
65976b8d85
[BitSet] Add some docs.
2022-08-25 20:26:48 -07:00
Karoy Lorentey
544507ee62
[BitArray] Add some docs.
2022-08-25 20:26:48 -07:00
Karoy Lorentey
30da8ea7a1
[test] Enable index(_:offsetBy:limitedBy:) checks
2022-08-25 20:26:48 -07:00
Karoy Lorentey
1aed39e0c6
[BitSet] Implement fancy index methods
2022-08-25 20:26:48 -07:00
Michael Steindorfer
810f22d976
[Capsule] Add sequence representations for slices
2022-08-19 14:30:48 +02:00
Karoy Lorentey
c3fdcf746e
Merge pull request #163 from ktoso/wip-filter-set
...
=OrderedSet.filter Attempt to optimize filter impl
2022-08-18 10:52:29 -07:00
Karoy Lorentey
3bf91b1ee4
Remove hash lookups while filtering
2022-08-17 22:57:37 -07:00
Konrad `ktoso` Malawski
f56388e4f7
=OrderedSet.filter Attempt to optimize filter impl
2022-08-18 10:28:20 +09:00
Karoy Lorentey
a6cf763c32
Merge pull request #162 from apple/fix-name-lookup-weirdness
...
[OrderedSet] Work around weird name lookup issue in compiler
2022-08-17 18:03:36 -07:00
Karoy Lorentey
1071b37294
[OrderedSet] Work around weird name lookup issue in compiler
...
Resolves #157 .
2022-08-17 17:37:53 -07:00
Karoy Lorentey
8cc9d2200c
Merge pull request #160 from apple/use-temp-alloc-facility
...
[OrderedCollection] Use standard temp allocation facility, if available
2022-08-17 15:18:25 -07:00
Karoy Lorentey
ddb6d141b3
[OrderedCollection] Use standard temp allocation facility, if available
...
The 5.6 stdlib introduced a new facility for temporary allocations
that promises better performance than direct allocations. Use it when
the toolchain version is above 5.6.
2022-08-17 13:52:00 -07:00
Karoy Lorentey
3642c26f58
[BitSet] Use standard temporary allocation facility when available
2022-08-17 13:49:07 -07:00
Konrad `ktoso` Malawski and Xiaodi Wu
74a800ac53
Apply suggestions from code review
...
Co-authored-by: Xiaodi Wu <13952+xwu@users.noreply.github.com >
2022-08-17 12:21:02 +09:00
Konrad `ktoso` Malawski
876586f924
expect type is correct
2022-08-17 11:06:07 +09:00
Karoy Lorentey
d8d9c5ea25
[BitSet] Add documentation
2022-08-16 19:01:11 -07:00
Konrad `ktoso` Malawski
f8726ce33f
checkInvariants
2022-08-17 11:01:03 +09:00
Karoy Lorentey
da84296b9b
[BitSet] Add custom sorted(), returning self
2022-08-16 15:53:06 -07:00
Karoy Lorentey
4cb8ecebee
[BitSet] Add new initializers (from words & bit arrays)
2022-08-16 15:44:13 -07:00
Karoy Lorentey
94e2e477db
[BitArray] Add truncateOrExtend method
...
This comes handy to e.g. restore the original count of a bit array
after a BitArray→BitSet→BitArray conversion roundtrip.
2022-08-16 15:43:34 -07:00
Konrad `ktoso` Malawski
6142869b83
+OrderedSet add filter #158
2022-08-16 20:37:44 +09:00
Karoy Lorentey
cbf933665b
[BitSet] Revert to non-generic BitSet
...
Also, remove members that were generic over FixedWidthInteger.
2022-08-12 19:22:24 -07:00
Karoy Lorentey
d8bace07c8
Merge branch 'main' into feature/BitSet
...
# Conflicts:
# Utils/swift-collections.xcworkspace/xcshareddata/xcschemes/BitCollections.xcscheme
# Utils/swift-collections.xcworkspace/xcshareddata/xcschemes/CollectionsTestSupport.xcscheme
# Utils/swift-collections.xcworkspace/xcshareddata/xcschemes/PriorityQueueModule.xcscheme
2022-08-12 16:38:36 -07:00
Michael Steindorfer
0c192fd2e6
[Capsule] Add bitmap to sequence converters
2022-08-12 15:50:28 +02:00
Michael Steindorfer
c7905a5153
[Capsule] Add basic implementation of PersistentDictionary.Index type
2022-08-09 17:20:29 +02:00
Michael Steindorfer
d9e22947f7
[Capsule] Provide skeletons for keys and values views
...
These are simplistic approximations that will require rework.
2022-08-09 17:20:29 +02:00
Michael Steindorfer
fadd0541a4
[Capsule] Add placeholders for missing Dictionary protocols
2022-08-09 17:20:29 +02:00
Michael Steindorfer
93054561f6
[Capsule] Add preliminary support for shrinking
2022-08-09 17:20:29 +02:00
Michael Steindorfer
ce70ede82c
[Capsule] Constrain capacity type
2022-08-09 17:20:29 +02:00
Michael Steindorfer
fc60fae4d7
[Capsule] Rename HashMap to PersistentDictionary
2022-08-09 17:20:28 +02:00
Michael Steindorfer
624b245c7e
[Capsule] Rework MapKeyValueTupleIterator
2022-08-09 17:20:28 +02:00
Michael Steindorfer
94505e600e
[Capsule] Make ReturnPayload binding explicit in hash collision node
2022-08-09 17:20:28 +02:00
Michael Steindorfer
108289e8fc
[Capsule] Fix heap buffer overflow issue during deletion
2022-08-09 17:20:28 +02:00
Michael Steindorfer
40e0f806a4
[Capsule] Make get internal in favor of subscript
2022-08-09 17:20:28 +02:00
Michael Steindorfer
f809ec1e79
[Capsule] Remove alternatives that have undefined behavior
2022-08-09 17:20:28 +02:00
Michael Steindorfer
5604bee3d2
[Capsule] Make ReturnPayload binding explicit
2022-08-09 17:20:28 +02:00
Michael Steindorfer
49c478877a
[Capsule] Convert to unsigned bitmap type
2022-08-09 17:20:28 +02:00
Michael Steindorfer
7bb9cbad57
[Capsule] Ensure object layout of Node is class reference
2022-08-09 17:20:28 +02:00
Michael Steindorfer
2856197785
[Capsule] Make alignment calculation robust
2022-08-09 17:20:28 +02:00
Michael Steindorfer
d295c30459
[Capsule] Remove unused key set hash code
2022-08-09 17:20:28 +02:00
Michael Steindorfer
cf5310624b
[Capsule] Use provided hasher argument
2022-08-09 17:20:28 +02:00
Michael Steindorfer
b2808c45bb
[Capsule] Clean-up comments and unused constants
2022-08-09 17:20:28 +02:00
Michael Steindorfer
d7bda3b2e3
[Capsule] Unclutter segment counts
2022-08-09 17:20:28 +02:00
Michael Steindorfer
4805a86453
[Capsule] Replace buffer with baseAddress references
2022-08-09 17:20:28 +02:00
Michael Steindorfer
d3816c2fba
[Capsule] Rework buffer to use UnsafeMutableRawPointer
2022-08-09 17:20:28 +02:00