Karoy Lorentey
f64adedbf4
[Future] _CollectionsUtilities → InternalCollectionsUtilities
2024-08-06 11:33:20 -07:00
Karoy Lorentey
a81352a313
[Future] BorrowingIterator: Make copyable; fix nextChunk’s lifetime constraint
2024-08-06 10:50:07 -07:00
Karoy Lorentey
944f4ab1fe
[Deque] Delete old _UnsafeHandle type
2024-08-06 10:49:13 -07:00
Karoy Lorentey
3310a4c21c
[Deque] Add HypoDeque and DynoDeque
2024-08-06 10:45:21 -07:00
Karoy Lorentey
774be11219
[Future] Add HypoArray and DynoArray
2024-08-06 10:44:12 -07:00
Karoy Lorentey
1a5b0e4981
[Future] Add very early prototype for borrowable containers
...
- protocol BorrowingIteratorProtocol
- protocol Container
- protocol BidirectionalContainer
- protocol RandomAccessContainer
2024-08-06 10:44:07 -07:00
Karoy Lorentey
6339b9859e
[_CollectionsUtilities] Add new buffer pointer operations
2024-08-06 10:44:00 -07:00
Karoy Lorentey
0529df9aee
[_CollectionsTestUtilities] Add U[M][R]BP._extracting(first:) and ._extracting(last:)
...
Also generalize some members to support ~Copyable elements
2024-08-06 10:43:53 -07:00
Karoy Lorentey
d58c5b60a5
Merge branch 'main' into future
...
# Conflicts:
# Sources/CMakeLists.txt
# Sources/InternalCollectionsUtilities/Compatibility/UnsafeMutableBufferPointer+SE-0370.swift.gyb
# Sources/InternalCollectionsUtilities/Compatibility/UnsafeMutablePointer+SE-0370.swift.gyb
# Sources/InternalCollectionsUtilities/Compatibility/UnsafeRawPointer extensions.swift.gyb
# Sources/InternalCollectionsUtilities/Compatibility/autogenerated/UnsafeMutableBufferPointer+SE-0370.swift
# Sources/InternalCollectionsUtilities/Compatibility/autogenerated/UnsafeMutablePointer+SE-0370.swift
# Sources/InternalCollectionsUtilities/Compatibility/autogenerated/UnsafeRawPointer extensions.swift
# Sources/InternalCollectionsUtilities/Specialize.swift.gyb
# Sources/InternalCollectionsUtilities/autogenerated/Specialize.swift
2024-08-05 20:31:30 -07:00
Karoy Lorentey
5dd817c33d
Merge branch 'release/1.1'
2024-08-05 20:10:26 -07:00
Karoy Lorentey
f14a18d7a6
Mark empty singletons as nonisolated(unsafe)
2024-08-05 19:37:20 -07:00
Karoy Lorentey
2359d9a09c
[_CollectionsUtilities] Fix visibility modifiers in single module mode
2024-07-31 16:20:18 -07:00
Karoy Lorentey
0d4376d5cd
[_CollectionsUtilities] Delete obsolete compatibility definitions
2024-07-29 13:18:25 -07:00
Guillaume Lessard
3847f3ac53
add a description property
2024-07-24 17:04:37 -07:00
Guillaume Lessard
80c67c2eff
add identity operator
2024-07-24 17:04:37 -07:00
Karoy Lorentey
293314a584
Merge pull request #403 from quokkaKyu/release/1.1
...
add 'final' keyword to class
2024-07-18 14:38:35 -07:00
Guillaume Lessard
93efdb9e4e
add doc-comments for the containment utilities
2024-07-16 13:30:51 -07:00
Guillaume Lessard
296f94c2d8
remove undesirable default values
2024-07-16 13:30:29 -07:00
Guillaume Lessard
c611501b0a
mark _indices and _byteOffsets as @_aEIC
2024-07-16 09:09:44 -07:00
Guillaume Lessard
fe649d9a4c
add convenience initializers for Span
2024-07-16 08:56:22 -07:00
Guillaume Lessard
c0d0230905
add convenience initializers for RawSpan
2024-07-16 08:55:15 -07:00
Karoy Lorentey
5e1fe6e8f0
[BigString] Fix accidentally quadratic BigString.init
...
When ingesting a `String` instance, `BigString` assumes that the input string has a reasonably efficient UTF-8 view.
Unfortunately, that is very much not the case when the input happens to be backed by a bridged NSString object — it appears that in this case, the ingester loop invokes some operation(s) with linear complexity in the size of the entire input, rendering the ingester’s overall complexity quadratic.
The BigString ingester is only expected to operate within a single chunk at the time. It’s unclear precisely which operation triggers the quadratic behavior; ideally we should figure it out and resolve it with a more targeted fix.
In the meantime, a blunt stopgap fix is to force-transcode the input string to UTF-8 at the time the ingester is initialized. This unnecessarily wastes some (temporary) memory on holding the transcoded string, but it avoids the quadratic cliff.
2024-07-15 13:13:44 -07:00
quokkakyu
6b8276e252
add 'final' keyword to class
2024-07-15 09:27:27 +09:00
Guillaume Lessard
6f4d9d8560
improve internal representation of RawSpan
2024-07-14 04:31:13 -07:00
Guillaume Lessard
b7aab16cce
improve internal representation of Span
2024-07-14 04:22:33 -07:00
Guillaume Lessard
9c0d9af55a
fix inlinability annotations on Span and RawSpan
2024-07-12 16:03:47 -07:00
Guillaume Lessard
d352247af3
remove workaround for rdar://130971168
2024-07-12 13:43:54 -07:00
Guillaume Lessard
f5e16d3f02
fix indentation
2024-07-11 15:18:39 -07:00
Guillaume Lessard
6b11eeb4dc
un-comment parsing utilities, mark compiler issues
...
These compiled in the development nightly toolchain of 6/13, but didn’t anymore in the development nightly of 7/1. The regression is related to typed throws.
2024-07-09 17:13:30 -07:00
Jeremy Schonfeld
3d2dc41a01
[CMake] Reduce the size of the _FoundationCollections module ( #395 )
2024-07-08 11:23:21 -07:00
Guillaume Lessard
105afd86fb
fix doc-comments
2024-07-02 14:02:58 -07:00
Guillaume Lessard
5ccce50e28
repeatedly add a missing doc-comment paragraph
2024-07-02 14:02:58 -07:00
Guillaume Lessard
fefc900b92
changed uncheckedBounds to just unchecked
2024-07-02 14:02:58 -07:00
Guillaume Lessard
cb6b7c9a55
remove some outdated mentions of “view”
2024-07-02 14:02:58 -07:00
Alejandro Alonso
09f9340dce
Update RawSpan.swift
2024-07-02 11:27:31 -07:00
Alejandro Alonso
9c4d47328e
Add box and cell tests
2024-07-02 11:26:50 -07:00
Alejandro Alonso
39a05be6e1
Update Box.swift
2024-07-02 11:26:25 -07:00
Alejandro Alonso
b8191bedee
Update Cell.swift
2024-07-02 11:26:24 -07:00
Alejandro Alonso
17194f3e45
Add box and cell
2024-07-02 11:26:22 -07:00
Guillaume Lessard
f049c7ae66
better document unsafe operations of RawSpan
2024-06-28 18:35:37 -07:00
Guillaume Lessard
99b025049e
add utilities to determine span containment relationships
2024-06-26 16:40:27 -07:00
Guillaume Lessard
ac0b6e1e39
remove some useless hedging from doc-comments
2024-06-26 16:27:25 -07:00
Jeremy Schonfeld
3e120b48bb
[CMake] Reduce path lengths in single-module build ( #392 )
...
* Eliminate relative paths from the cmake single-module build
* Attempt to reduce length of paths in single module build
2024-06-26 08:39:11 -07:00
Guillaume Lessard
ce574378f8
improve bounds-checking and bounds-validation api
2024-06-25 10:27:59 -07:00
Guillaume Lessard
683e1cfb98
make withUnsafe* functions be inlined
2024-06-21 14:18:53 -07:00
Guillaume Lessard
4a20e6c3c9
remove some keywords that are inferred by default
2024-06-21 14:18:53 -07:00
Guillaume Lessard
637518426d
a few corrections
2024-06-21 12:55:08 -07:00
Guillaume Lessard
b7ccc7206c
use byteCount instead of count for RawSpan
...
- use the label `byteOffset` more consistently
2024-06-20 15:05:33 -07:00
Guillaume Lessard
539d11545e
de-emphasize indices property on Span
2024-06-20 15:00:29 -07:00
Guillaume Lessard
3d819ebabf
add parsing utilities
2024-06-20 03:04:42 -07:00