rsx: Lower cache block length to 256 pages

- Drastically lowers time wasted iterating blocks when many small objects
  are present
This commit is contained in:
kd-11 2021-01-26 00:27:36 +03:00 committed by kd-11
parent 1bad9a939f
commit 0c10f47e85
1 changed files with 1 additions and 1 deletions

View File

@ -459,7 +459,7 @@ namespace rsx
class ranged_storage class ranged_storage
{ {
public: public:
static constexpr u32 block_size = 0x1000000; static constexpr u32 block_size = 0x100000;
static_assert(block_size % 4096u == 0, "block_size must be a multiple of the page size"); static_assert(block_size % 4096u == 0, "block_size must be a multiple of the page size");
static constexpr u32 num_blocks = u32{0x100000000ull / block_size}; static constexpr u32 num_blocks = u32{0x100000000ull / block_size};
static_assert((num_blocks > 0) && (u64{num_blocks} *block_size == 0x100000000ull), "Invalid block_size/num_blocks"); static_assert((num_blocks > 0) && (u64{num_blocks} *block_size == 0x100000000ull), "Invalid block_size/num_blocks");