-
Notifications
You must be signed in to change notification settings - Fork 21
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
perf: Use faster malloc
#188
base: main
Are you sure you want to change the base?
Conversation
Can you share your local benchmark results? |
Can you try profiling from your PC? |
57168b8
to
9886f5e
Compare
Do you have any information that backs up that "best" claim for reference? Presently it looks like You use You may want to evaluate Keep in mind that the most appropriate allocator choice really depends on the workload context.
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #188 +/- ##
==========================================
+ Coverage 92.65% 92.72% +0.07%
==========================================
Files 57 57
Lines 2847 2847
==========================================
+ Hits 2638 2640 +2
+ Misses 209 207 -2 ☔ View full report in Codecov by Sentry. |
Feel free to inline it if you want |
As @kdy1 does not seem interested in responding to the raised concerns, it is probably not worthwhile merging the PR.
|
Sorry, I'm too lazy to explain it to you. |
If you want description, see the git history of the crate. It's recently renamed, so you may need to use github UI or you should have a bit of git skills. |
I did, the original crate introduced the allocator here with both Like with other commits and PRs related to the allocator history, there is very little information beyond some bench result snippets shared in PRs. These provide minimal context and instill no confidence in addressing the concerns I raised about merging your PR here.
Being lazy to respond to these questions is ok 👍 But by not doing it should discourage @KSXGitHub from approving this PR.
You are promoting adoption of something unreliable, with very little evidence to support it. @KSXGitHub would be better off explicitly managing the global allocator themselves (should they see value in switching the allocator wholesale, or configuring multiple based on target). |
#[cfg.target(xxx).dependencies] in One more problem is that, over time the build breaks. That's why I simply use About musl, those are excluded because musl builds are very slow in GitHub action. Sorry for being rude. I had too many tasks at that time. |
Hi. I'm the creator of SWC, and I'm working to improve performance.
swc_malloc
is a utility crate that configures global malloc with the best one for each platform. I made it mainly for benchmarks, but I found it useful so I'm also using it for the official node bindings (including extra bindings - CSS/HTML/XML)If you want, you can store it inline, but with this crate you don't need to maintain it.