TechPrufer
InterviewBlogEngineering
Sign inGet started
TechPrufer
Feed
CareerApplicationsTailor
ResourcesInterview QuestionsSalaries
Engineering Notes
Library
SavedHistory
Save your progress

Sign in to save posts, track applications and tailor resumes.

Sign in
BlogsMeilisearch
Memory Allocator Optimization
Meilisearch
Meilisearch logoMeilisearch · Feature trail

Memory Allocator Optimization

1 post · Mar 2026

What this trail covers

Meilisearch has undergone significant memory allocator optimization, moving from mimalloc v2 to mimalloc v3 and investigating the interaction with LMDB. This has resulted in reduced memory usage and improved performance, particularly on network-attached storage. The investigation revealed issues with allocator cooperation between Meilisearch and LMDB, leading to memory bloat. Unifying the allocator (mimalloc v3) resolved these issues and improved performance.

All Meilisearch trails
  1. Mar 2026The good, the bad, and the leaky: jemalloc, bumpalo, and mimalloc in MeilisearchThis post details the investigation and resolution of a memory leak and high memory usage in Meilisearch. It covers the challenges of debugging memory issues in Rust, the use of jemalloc for profiling, the identification of a leak related to bumpalo's `into_bump_slice` and storing `std::Vec` within it, and the critical discovery that LMDB's default allocator was not cooperating with Meilisearch's custom allocator (mimalloc v2). The solution involved unifying the allocator to mimalloc v3, which significantly reduced memory usage and improved performance, especially on network-attached storage. Benchmarks showed performance gains and losses, highlighting tradeoffs.
  2. Advertisement

What this trail covers

Meilisearch has undergone significant memory allocator optimization, moving from mimalloc v2 to mimalloc v3 and investigating the interaction with LMDB. This has resulted in reduced memory usage and improved performance, particularly on network-attached storage. The investigation revealed issues with allocator cooperation between Meilisearch and LMDB, leading to memory bloat. Unifying the allocator (mimalloc v3) resolved these issues and improved performance.

All Meilisearch trails

Interview questions

All companies
  • M
    Meta interview questions
  • U
    Uber interview questions
  • A
    Apple interview questions
  • S
    Stripe interview questions
  • N
    Netflix interview questions
  • A
    Anthropic interview questions
  • G
    Google interview questions
  • A
    Amazon interview questions

Salaries

All salaries
  • M
    Microsoft salaries
  • A
    Amazon salaries
  • G
    Google salaries
  • S
    Salesforce salaries
  • O
    Oracle salaries
  • P
    PayPal salaries
  • G
    Goldman Sachs salaries
  • A
    Adobe salaries

Product

  • Resume Editor
  • Job Tailor
  • Application Tracker
  • LinkedIn Improver
  • Chrome Extension
© 2026 TechPrufer · techprufer.com
TermsPrivacy
FeedCareerResourcesBlogs