Make MAPPINGS_CACHE_SIZE configurable
hehechen opened this issue · comments
hehechen commented
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.