fix(deps): update module github.com/wasilibs/go-re2 to v1.11.0#60
Open
renovate[bot] wants to merge 1 commit into
Open
fix(deps): update module github.com/wasilibs/go-re2 to v1.11.0#60renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
52f60af to
3f9cb7b
Compare
3f9cb7b to
1970a9e
Compare
1970a9e to
b727a44
Compare
Contributor
Author
ℹ️ Artifact update noticeFile name: go.modIn order to perform the update(s) described in the table above, Renovate ran the
Details:
|
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.
This PR contains the following updates:
v1.9.0→v1.11.0Release Notes
wasilibs/go-re2 (github.com/wasilibs/go-re2)
v1.11.0Compare Source
It has been some time since a release. There haven't been any upstream re2 release, wazero is mostly complete at least for the Wasm features we use, and otherwise the API here is stable so there hasn't been much to do. However recently there has been a major development - @ncruces has developed wasm2go, a compiler from Wasm directly to Go code. This means instead of wazero's built in compiler which generates machine code from Wasm on the fly, we get to compile the re2 logic directly into a binary using the Go compiler. This should ensure better platform support for go-re2.
The wasm2go backend can be enabled by building with the build tag
re2_wasm2go. Note that currently we see about 10-20% slowdown compared to wazero on the most difficult benchmark cases (@mathetake's wazero compiler is competitive against the Go compiler!) - on the flip side, the overhead for small expressions / inputs that we saw vs the stdlib is reduced. For normal workloads, we expect the performance to be quite similar to the wazero backend - because of the simpler architecture a standard Go source file provides, we will probably replace the default with wasm2go in the future.If you can, give
re2_wasm2goa try and see how it works for you! The feature is fresh off the oven so there may be issues, in particular we could use data on CPU and memory performance with real world workloads.Full Changelog: wasilibs/go-re2@v1.10.0...v1.11.0
v1.10.0Compare Source
This release moves initialization of the wazero runtime from package init to happen during the first regex compilation. It's natural for apps to import go-re2 even for flows that don't require it, for example the
--versioncommand of a CLI, so it's best to not slow these down with the initialization. While it can be tricky to do lazy initialization sometimes since we wouldn't want to move heavy operations to the hot path of an application like a server request handler, we believe re2 users will always consider regex compilation too heavy for the hot path already and this should not negatively affect real applications. If it does, please let us know.It also initializes a compilation cache so when the library is used in an app multiple times on the same machine, subsequent initializations will be much faster.
On a non-technical note, a reminder that this is a volunteer project. While it is understandable to see some loss of good faith due to the recent Go 1.24 incompatibility, we try our best to be responsive to issues. It can affect motivation though to see proposals to remove or demote go-re2 quickly when something happens. This is fine though, all projects need to be very careful of their dependencies. But we do ask when discussing this to at least make sure you present accurate and meaningful information - if anything is ever unclear, please feel free to bring @anuraaga in to the conversation.
Thank you.
Full Changelog: wasilibs/go-re2@v1.9.0...v1.10.0
Configuration
📅 Schedule: (in timezone Asia/Tokyo)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.