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 jemalloc(ator) with mimalloc, which covers wider platforms #315

Merged
merged 3 commits into from
Nov 27, 2024

Conversation

tats-u
Copy link
Contributor

@tats-u tats-u commented Oct 10, 2024

Pull Request

Related issue

Fixes #314

What does this PR do?

The platforms supported by jemallocator are limited. I use Windows but can't build charabia due to it. It should be disabled in unsupported platforms. It is used only for benchmarks.

PR checklist

Please check if your PR fulfills the following requirements:

  • Does this PR fix an existing issue, or have you listed the changes applied in the PR description (and why they are needed)?
  • Have you read the contributing guidelines?
  • Have you made sure that the title is accurate and descriptive of the changes?

Thank you so much for contributing to Meilisearch!

@tats-u tats-u changed the title Don't use jemalloc in unsupported platforms Don't use jemalloc(ator) in unsupported platforms Oct 10, 2024
@tats-u tats-u force-pushed the minimalize-jemalloc branch from 2ab9249 to 0ee5617 Compare October 10, 2024 14:09
@ManyTheFish
Copy link
Member

Hello @tats-u, sorry for the delay, can you use mimalloc instead? as you suggested in the issue?

@tats-u
Copy link
Contributor Author

tats-u commented Nov 20, 2024

@ManyTheFish It works on Windows MSVC.
cargo bench can be run with it in Windows. (I haven't checked its effect)

@tats-u tats-u changed the title Don't use jemalloc(ator) in unsupported platforms Replace jemalloc(ator) with mimalloc, which covers wider platforms Nov 20, 2024
@tats-u
Copy link
Contributor Author

tats-u commented Nov 20, 2024

Can I rebase this branch to main (not merge main into this branch) and squash my 2 commits into just one?

Copy link
Member

@ManyTheFish ManyTheFish left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello @tats-u,

Github is able to rebase this kind of PR, so I did it with the UI,

Sorry for the delay and thank you for your work,

Bors merge

Copy link
Contributor

meili-bors bot commented Nov 27, 2024

Build succeeded:

@meili-bors meili-bors bot merged commit 344d180 into meilisearch:main Nov 27, 2024
4 checks passed
@tats-u tats-u deleted the minimalize-jemalloc branch November 27, 2024 10:45
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.

charabia can't be built in Windows due to jemallocator used only for bench
2 participants