Skip to content

Init optimization - #7

Merged
0xdea110c8 merged 4 commits into
mainfrom
optimization
Aug 14, 2026
Merged

Init optimization#7
0xdea110c8 merged 4 commits into
mainfrom
optimization

Conversation

@0xdea110c8

Copy link
Copy Markdown
Owner

What has been done:

  • inlined internal initializer methods

@github-actions

Copy link
Copy Markdown

Unit Tests

Commit: 4bc3de0

Environment: Apple Swift version 6.3.3 (swiftlang-6.3.3.1.3 clang-2100.1.1.101)

✅ Tests passed

@0xdea110c8

Copy link
Copy Markdown
Owner Author

Benchmark results:

Method Old New
init/15byte/inlinestring16 5.443 3.569 +34%
init/15byte/inlinestring16-string-literal 4.083 2.916 +29%
init/16byte/inlinestring16 7.614 4.734 +38%
init/16byte/inlinestring16-string-literal 6.488 4.268 +34%
init/empty/inlinestring16 1.112 1.113 +0%
init/empty/inlinestring16-string-literal 3.319 2.902 +13%

@0xdea110c8
0xdea110c8 merged commit 0bdf920 into main Aug 14, 2026
2 checks passed
@0xdea110c8
0xdea110c8 deleted the optimization branch August 14, 2026 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant