Skip to content

Make MAPPINGS_CACHE_SIZE configurableΒ #499

Open
@hehechen

Description

@hehechen

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions