larger cache sizes

This commit is contained in:
Joseph Mattiello 2025-07-04 22:13:52 -04:00
parent 9f3357cd7b
commit fe79e9461b
2 changed files with 6 additions and 4 deletions

View File

@ -16,8 +16,9 @@
#if FEAT_SHREC != DYNAREC_NONE
constexpr u32 CODE_SIZE = 10_MB;
constexpr u32 TEMP_CODE_SIZE = 1_MB;
// Enlarged to reduce cache evictions and block recompilation
constexpr u32 CODE_SIZE = 128_MB;
constexpr u32 TEMP_CODE_SIZE = 4_MB;
constexpr u32 FULL_SIZE = CODE_SIZE + TEMP_CODE_SIZE;
#if defined(_WIN32) || FEAT_SHREC != DYNAREC_JIT || defined(TARGET_IPHONE) || defined(TARGET_ARM_MAC)

View File

@ -31,8 +31,9 @@ extern bool g_exception_was_raised;
#if FEAT_SHREC == DYNAREC_JITLESS
constexpr u32 CODE_SIZE = 10_MB;
constexpr u32 TEMP_CODE_SIZE = 1_MB;
// Enlarged code cache for jitless path to avoid frequent clears
constexpr u32 CODE_SIZE = 32_MB;
constexpr u32 TEMP_CODE_SIZE = 2_MB;
constexpr u32 FULL_SIZE = CODE_SIZE + TEMP_CODE_SIZE;
#if defined(_WIN32) || FEAT_SHREC != DYNAREC_JIT || defined(TARGET_IPHONE) || defined(TARGET_ARM_MAC)