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

fix: drop wee malloc to remove memory leaks #17

Merged
merged 1 commit into from Oct 26, 2022

Conversation

RossWilliams
Copy link
Contributor

@RossWilliams RossWilliams commented Oct 25, 2022

Repeatedly calling this library causes unbounded memory growth. Wee-alloc has known memory leak issues.
See rustwasm/wee_alloc#106

Rust's standard library allocator can be used instead.

resolves #16

Repeatedly calling this library causes unbounded memory growth.
Wee-alloc has known memory leak issues.
See rustwasm/wee_alloc#106

Rust's standard library allocator can be used instead.
@CLAassistant
Copy link

CLAassistant commented Oct 25, 2022

CLA assistant check
All committers have signed the CLA.

@pimterry
Copy link
Member

Amazing work, thanks @RossWilliams! Hunting that down would have taken me absolutely ages, thank you so much 👏 👏 👏

Seems like all the tests still work nicely, and the resulting package size is almost identical (+2KB on each 1.4MB binary) so really no downside at all. I'll merge now & push a new release shortly.

By the way, in case you're not aware, HTTP Toolkit Pro is completely free for all contributors to the repos in this org, and this definitely counts! If you're interested, just let me know your email and I'll set you up with an account. More info: https://github.com/httptoolkit/httptoolkit/#contributing-directly

@pimterry pimterry merged commit a4012c6 into httptoolkit:main Oct 26, 2022
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.

Fails when calling repeatedly
3 participants