Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use mimalloc instead of system allocator
Benchmarks: ``` group base jemalloc mimalloc mimalloc-insecure ----- ---- -------- -------- ----------------- ripgrep::node_modules 1.00 140.7±1.24ms ? ?/sec 1.91 267.8±6.46ms ? ?/sec 1.00 140.1±1.48ms ? ?/sec 1.00 140.5±1.73ms ? ?/sec ripgrep::package-lock.json 1.16 1690.3±43.28µs ? ?/sec 1.09 1587.6±29.90µs ? ?/sec 1.05 1526.9±23.70µs ? ?/sec 1.00 1455.6±36.80µs ? ?/sec ripgrep::testdata 1.18 1279.0±56.35µs ? ?/sec 1.37 1481.4±42.61µs ? ?/sec 1.00 1079.3±56.64µs ? ?/sec 1.09 1179.5±72.64µs ? ?/sec syntect::package-lock.json 1.27 704.2±35.54ms ? ?/sec 1.05 580.7±37.35ms ? ?/sec 1.04 579.8±31.08ms ? ?/sec 1.00 554.9±30.07ms ? ?/sec syntect::ripgrep-background 1.25 109.2±1.83ms ? ?/sec 1.04 90.9±0.93ms ? ?/sec 1.03 90.1±1.79ms ? ?/sec 1.00 87.2±1.06ms ? ?/sec syntect::ripgrep-large 1.09 422.4±3.94ms ? ?/sec 1.31 507.9±10.91ms ? ?/sec 1.01 392.8±4.37ms ? ?/sec 1.00 387.1±4.92ms ? ?/sec syntect::ripgrep-no-wrap 1.25 109.2±1.49ms ? ?/sec 1.04 90.9±1.07ms ? ?/sec 1.03 89.8±1.11ms ? ?/sec 1.00 87.3±1.26ms ? ?/sec syntect::ripgrep-small 1.25 109.1±1.59ms ? ?/sec 1.04 91.1±1.55ms ? ?/sec 1.02 89.8±1.28ms ? ?/sec 1.00 87.6±2.02ms ? ?/sec syntect::ripgrep-tiny 1.55 48.4±0.48ms ? ?/sec 1.13 35.3±1.75ms ? ?/sec 1.07 33.3±0.44ms ? ?/sec 1.00 31.2±0.53ms ? ?/sec ``` mimalloc without secure mode is fastest in most benchmarks
- Loading branch information