mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-26 01:11:25 +01:00
[set-digest] Back to a 3-entry, with different parameters now
We used to use 4,0,9 for years. Now 3,0,6. It is slightly faster and shouldn't regress common fonts. The rationale is that OT GSUB/GPOS are split by script, so any particular script is not likely to use more than a few thousands of (consecutive mostly) glyphs. The exception is CJK of course, but those have less GSUB/GPOS work.
This commit is contained in:
1 parent
f5fe66cf5f
commit
d712a02845
1 file changed
+2
-2
@@ -68,8 +68,8 @@ struct hb_set_digest_t
|
||||
{
|
||||
// No science in these. Intuition and testing only.
|
||||
using mask_t = uint64_t;
|
||||
static constexpr unsigned n = 4;
|
||||
#define HB_SET_DIGEST_SHIFTS {4, 0, 6, 9}
|
||||
static constexpr unsigned n = 3;
|
||||
#define HB_SET_DIGEST_SHIFTS {3, 0, 6}
|
||||
|
||||
static constexpr unsigned mask_bytes = sizeof (mask_t);
|
||||
static constexpr unsigned mask_bits = sizeof (mask_t) * 8;
|
||||
|
||||
Reference in new issue
Block a user