backtrace-rs icon indicating copy to clipboard operation
backtrace-rs copied to clipboard

Make MAPPINGS_CACHE_SIZE configurable

Open hehechen opened this issue 2 years ago • 0 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: https://github.com/pingcap/tiflash/issues/6347#issuecomment-1333038382 Some users may want to increase MAPPINGS_CACHE_SIZE to trade memory for performance improvement.

hehechen avatar Dec 01 '22 02:12 hehechen