-
Notifications
You must be signed in to change notification settings - Fork 132
Comparing changes
Open a pull request
base repository: airlift/slice
base: 2.6
head repository: airlift/slice
compare: 2.7
- 20 commits
- 13 files changed
- 3 contributors
Commits on Mar 6, 2026
-
Configuration menu - View commit details
-
Copy full SHA for 12a0aa3 - Browse repository at this point
Copy the full SHA 12a0aa3View commit details
Commits on Mar 8, 2026
-
Configuration menu - View commit details
-
Copy full SHA for 3a7850b - Browse repository at this point
Copy the full SHA 3a7850bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6df546c - Browse repository at this point
Copy the full SHA 6df546cView commit details
Commits on Mar 9, 2026
-
Configuration menu - View commit details
-
Copy full SHA for 6775d2a - Browse repository at this point
Copy the full SHA 6775d2aView commit details
Commits on Mar 13, 2026
-
Configuration menu - View commit details
-
Copy full SHA for 66c2451 - Browse repository at this point
Copy the full SHA 66c2451View commit details -
Refactor SliceUtf8 byte-array internals and remove wrapper accessors
unwrapping slice makes it easier to see what is happening in these algorithms and makes it easier to optimize. Additionally this makes these functions usable without having to wrap them into a slice.
Configuration menu - View commit details
-
Copy full SHA for 2921ea1 - Browse repository at this point
Copy the full SHA 2921ea1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 05c0c4a - Browse repository at this point
Copy the full SHA 05c0c4aView commit details -
Benchmark (benchmarkCompareUtf16BE, length=1000): - ascii=true: 3.483 -> 0.102 ns/codepoint - ascii=false: 8.214 -> 6.395 ns/codepoint
Configuration menu - View commit details
-
Copy full SHA for 8be9ad7 - Browse repository at this point
Copy the full SHA 8be9ad7View commit details -
Benchmark (benchmarkReverse, length=1000): - ascii=true: 0.318 -> 0.067 ns/codepoint - ascii=false: 3.397 -> 3.406 ns/codepoint (flat within noise)
Configuration menu - View commit details
-
Copy full SHA for cb65e6b - Browse repository at this point
Copy the full SHA cb65e6bView commit details -
Benchmark (benchmarkToUpperCase, length=1000): - ascii=true: 3.053 -> 0.601 ns/codepoint - ascii=false: 7.254 -> 5.019 ns/codepoint
Configuration menu - View commit details
-
Copy full SHA for 36bd3fc - Browse repository at this point
Copy the full SHA 36bd3fcView commit details -
Benchmark (benchmarkToLowerCase, length=1000): - ascii=true: 3.029 -> 0.501 ns/codepoint - ascii=false: 7.145 -> 4.183 ns/codepoint
Configuration menu - View commit details
-
Copy full SHA for a02fc01 - Browse repository at this point
Copy the full SHA a02fc01View commit details -
Benchmark (benchmarkFixInvalidUtf8WithoutReplacement, inputLength=1024): - valid_non_ascii: 6.341 -> 3.978 ns/byte - invalid_non_ascii: 6.242 -> 4.549 ns/byte
Configuration menu - View commit details
-
Copy full SHA for 22cd199 - Browse repository at this point
Copy the full SHA 22cd199View commit details -
Benchmark (benchmarkLeftTrim, length=1000): - ascii=true: 1.919 -> 0.344 ns/codepoint - ascii=false: 3.137 -> 2.201 ns/codepoint
Configuration menu - View commit details
-
Copy full SHA for 9d02f1d - Browse repository at this point
Copy the full SHA 9d02f1dView commit details -
Benchmark (benchmarkRightTrim, length=1000): - ascii=true: 0.551 -> 0.359 ns/codepoint - ascii=false: 2.939 -> 2.534 ns/codepoint
Configuration menu - View commit details
-
Copy full SHA for ace3d34 - Browse repository at this point
Copy the full SHA ace3d34View commit details -
Optimize trim(..., whiteSpaceCodePoints)
Benchmark (benchmarkTrimCustom, length=1000): - ascii=true: 2.702 -> 0.474 ns/codepoint - ascii=false: 5.224 -> 4.329 ns/codepoint
Configuration menu - View commit details
-
Copy full SHA for d26a0e8 - Browse repository at this point
Copy the full SHA d26a0e8View commit details -
Benchmark (benchmarkSetCodePointAt, length=1000): - ascii=true: 0.336 -> 0.332 ns/codepoint - ascii=false: 2.259 -> 2.334 ns/codepoint Related benchmark (benchmarkCodePointToUtf8, length=1000): - ascii=false: 2.404 -> 2.154 ns/codepoint
Configuration menu - View commit details
-
Copy full SHA for 25f04bd - Browse repository at this point
Copy the full SHA 25f04bdView commit details -
Add toCodePoints UTF-8 decode API
Useful for Trino VARCHAR->code points casts and similar decode loops. Benchmark (ns/byte, length=1000): - toCodePointsApi ascii: 0.2319 (baseline two-pass: 2.4902) - toCodePointsApi non-ascii: 1.0820 (baseline two-pass: 1.6643)
Configuration menu - View commit details
-
Copy full SHA for 46634e6 - Browse repository at this point
Copy the full SHA 46634e6View commit details -
Add fromCodePoints UTF-8 encode API
Adds fromCodePoints to encode code-point arrays directly into UTF-8 Slice output. This is useful for Trino-style loops that currently pre-size and encode with repeated setCodePointAt calls. Benchmark (SliceUtf8Benchmark, length=1000 code points): - ascii=true: fromCodePointsApi 0.326 ns/codepoint vs Trino baseline 0.500 ns/codepoint - ascii=false: fromCodePointsApi 2.062 ns/codepoint vs Trino baseline 3.230 ns/codepoint
Configuration menu - View commit details
-
Copy full SHA for c30fe18 - Browse repository at this point
Copy the full SHA c30fe18View commit details -
Add UTF-8 code-point byte-length helper for Trino-style pad loops
Adds codePointByteLengths so callers can decode UTF-8 once and directly materialize per-code-point byte widths (1..4) for padding/loop planning. Benchmark (SliceUtf8Benchmark, length=128 code points): - ascii=true: helper(byte[]) 0.696 ns/codepoint vs Trino byte[] baseline 1.020 ns/codepoint - ascii=false: helper(byte[]) 2.129 ns/codepoint vs Trino byte[] baseline 3.596 ns/codepoint
Configuration menu - View commit details
-
Copy full SHA for aa8a4d1 - Browse repository at this point
Copy the full SHA aa8a4d1View commit details -
Configuration menu - View commit details
-
Copy full SHA for a4d32c8 - Browse repository at this point
Copy the full SHA a4d32c8View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff 2.6...2.7