Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace walrus #474

Merged
merged 5 commits into from
Dec 21, 2021
Merged

Replace walrus #474

merged 5 commits into from
Dec 21, 2021

Conversation

Jake-Shadle
Copy link
Contributor

Opening as a draft since this PR depends on #470

As stated in #472, this PR removes walrus due to its passively maintained status, and instead uses wasmparser directly. This means that not only can wasmparser be upgraded to follow the latest version much more easily and remove a dependency, it also means the runtime memory usage and CPU time should be greatly reduced as walrus was doing a lot more work when parsing than this implementation, which (other than the bits needed for validation) only parses the sections/content actually used by this crate.

Resolves: #472

symbolic-debuginfo/src/wasm.rs Show resolved Hide resolved
symbolic-debuginfo/src/wasm/parser.rs Outdated Show resolved Hide resolved
symbolic-debuginfo/src/wasm.rs Outdated Show resolved Hide resolved
symbolic-debuginfo/src/wasm/parser.rs Outdated Show resolved Hide resolved
@Jake-Shadle Jake-Shadle marked this pull request as ready for review December 20, 2021 16:47
@Jake-Shadle Jake-Shadle requested a review from a team December 20, 2021 16:47
symbolic-debuginfo/src/wasm.rs Outdated Show resolved Hide resolved
@Swatinem Swatinem merged commit f2e2bb9 into getsentry:master Dec 21, 2021
@Swatinem
Copy link
Member

Awesome stuff!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Replace walrus with straight wasmparser
2 participants