Repository navigation
v1.11.0 #235
anuraaga
announced in
Announcements
v1.11.0
#235
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
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: v1.10.0...v1.11.0
This discussion was created from the release v1.11.0.
All reactions