[set] Change pagesize from 512 bits to 8192 bits

Fixes perf regression on some heavy fonts in Chrome's FT+HB
interaction.

See:
https://bugs.chromium.org/p/chromium/issues/detail?id=782220

More work to be done:
https://bugs.chromium.org/p/chromium/issues/detail?id=794896
This commit is contained in:
Behdad Esfahbod 2017-12-14 13:30:38 -08:00
parent 0fe62c1f33
commit f424a34223
1 changed files with 1 additions and 1 deletions

View File

@ -151,7 +151,7 @@ struct hb_set_t
return 0;
}
static const unsigned int PAGE_BITS = 512; /* Use to tune. */
static const unsigned int PAGE_BITS = 8192; /* Use to tune. */
static_assert ((PAGE_BITS & ((PAGE_BITS) - 1)) == 0, "");
typedef uint64_t elt_t;