update to zig 0.15.0-dev.1048+f43f89a70#37
Merged
rockorager merged 4 commits intorockorager:zig-0.15from Jul 22, 2025
Merged
Conversation
aside from trivial changes: 1. code that was doing endianness conversion is now doing the conversion immediately as the struct is read. 2. in TzInfo.parse et simila, a call to readUntilDelimiter that would read to a local buffer has been changed to instead return directly a temporary slice to buffer memory. this should preserve the original logic while also avoiding a unnecessary copy. 3. in loadTimeZone we now provide a buffer to the reader, which should help with performance significantly considering that the parser does a good amount of small reads. 4. in build.zig the zeit api is now namespaced under `api`. rest in peace usingnamespace.
Author
|
just realized that this version of zig might not be available in CI, so consider waiting for the current pending job to complete https://github.com/ziglang/www.ziglang.org/actions/runs/16316578678 and then set the minimum_zig_version to that (the current latest unstable build is too old) |
rockorager
reviewed
Jul 16, 2025
the upper bound will be naturally set by the length of the reader buffer provided to parseBlock
|
@rockorager I’m working on slog, which depends on this awesome library. Any chance you could merge this PR into a branch so we can start testing dependent packages before Zig 0.15 drops? |
Owner
|
I made a zig-0.15 branch that we can keep up to date with zig master. I'll keep Thanks for the PR, Loris! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
aside from trivial changes:
code that was doing endianness conversion is now doing the conversion immediately as the struct is read.
in TzInfo.parse et simila, a call to readUntilDelimiter that would read to a local buffer has been changed to instead return directly a temporary slice to buffer memory. this should preserve the original logic while also avoiding a unnecessary copy.
in loadTimeZone we now provide a buffer to the reader, which should help with performance significantly considering that the parser does a good amount of small reads.
in build.zig the zeit api is now namespaced under
api. rest in peace usingnamespace.