Commit Graph
869 Commits
Author SHA1 Message Date
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
Guillaume Lessard 5334c14ad9 doc-comments for load and loadUnaligned 2024-06-20 02:12:50 -07:00
Guillaume Lessard d0dcbb12c6 doc-comment tweak 2024-06-20 01:45:57 -07:00
Guillaume Lessard 228f3f3422 fix tests and ContiguousStorage 2024-06-19 18:10:42 -07:00
Guillaume Lessard 3af133efec renamings and doc-comments in RawSpan 2024-06-19 18:10:26 -07:00
Guillaume Lessard 79ec3505da reorder initializers, improve labels, 80-column trimming 2024-06-19 17:52:00 -07:00
Guillaume Lessard 26d20e4a4e fix CMakeLists for the Future target 2024-06-19 17:47:01 -07:00
Jeremy Schonfeld af8349c392 Install the foundation toolchain module during the static swift build (#391) 2024-06-18 15:09:16 -07:00
Guillaume Lessard a06bed5279 improve one of the Span initializers 2024-06-17 17:08:19 -07:00
Guillaume Lessard b30103588f Rename prefix, suffix, dropFirst and dropLast 2024-06-17 11:09:30 -07:00
Guillaume Lessard 7f26f2705c Rename elementsEqual with an underscore 2024-06-14 12:47:25 -07:00
Guillaume Lessard 8e40715e6a add more doc-comments for Span API 2024-06-14 12:44:32 -07:00
Guillaume Lessard fc451765e9 rename a property of RawSpan 2024-06-14 12:44:12 -07:00
Guillaume Lessard e94873a993 add Span and RawSpan, with tests 2024-06-14 11:31:48 -07:00
Guillaume Lessard 00b3b5f2e3 Remove a dummy file 2024-06-14 10:13:43 -07:00
Alejandro Alonso 908dafa21b Introduce the Inout type 2024-06-12 13:52:12 -07:00