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

perf: use specific allocator on different platform #912

Merged
merged 2 commits into from
Feb 19, 2024
Merged

Conversation

xusd320
Copy link
Contributor

@xusd320 xusd320 commented Feb 7, 2024

This PR switch the global allocator based on different platform.

On my M2 Pro mac,use mimalloc let the example/multiple-entries-heavy bundle faster about 200ms and yuyanAssets bundle faster about 2000ms stably.

With mimalloc bundle multiple-entries-heavy
image

With system alloc bundle multiple-entries-heavy
image

With mimalloc bundle yuyanAssets
image
image

With system alloc bundle yuyanAssets
image

image

@sorrycc sorrycc merged commit d81af88 into master Feb 19, 2024
8 checks passed
@delete-merged-branch delete-merged-branch bot deleted the perf/allocators branch February 19, 2024 01:46
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.

2 participants