mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-21 23:01:05 +00:00
feat: improve jemalloc memory efficiency (#1689)
This commit is contained in:
parent
ae53ef4443
commit
e2816716a0
1 changed files with 10 additions and 0 deletions
10
.cargo/config.toml
Normal file
10
.cargo/config.toml
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
[env]
|
||||
# environment variable for tikv-jemalloc-sys
|
||||
#
|
||||
# https://jemalloc.net/jemalloc.3.html#opt.narenas
|
||||
# narenas is the maximum number of arenas to use for automatic multiplexing
|
||||
# of threads and arenas. The default is four times the number of CPUs,
|
||||
# or one if there is a single CPU.
|
||||
#
|
||||
# Improve memory efficiency by reducing fragmentation and ensuring all threads allocate from the same pool
|
||||
JEMALLOC_SYS_WITH_MALLOC_CONF = "narenas:1"
|
||||
Loading…
Add table
Reference in a new issue