rust-lang / backtrace-rs

Backtraces in Rust

Home Page:https://docs.rs/backtrace

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Make MAPPINGS_CACHE_SIZE configurable

hehechen opened this issue · comments

The MAPPINGS_CACHE_SIZE is 4 by hard coding.
Can we make it configurable? In some scenarios, the lib mappings cache miss will cause performance degrade, especially in the scenario that the debug sections are compressed. For example: pingcap/tiflash#6347 (comment)
Some users may want to increase MAPPINGS_CACHE_SIZE to trade memory for performance improvement.