mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-20 22:41:10 +01:00
[serialize] Only hash at most 128 bytes for object_t
Optimization. Shouldn't in reality bring down the hash performance. Byte objects differ in their early bytes anyway.
This commit is contained in:
1 parent
19eb5e3b6c
commit
fc80d20cb5
1 file changed
+1
-1
+1
-1
@@ -113,7 +113,7 @@ struct hb_serialize_context_t
|
||||
{
|
||||
// Virtual links aren't considered for equality since they don't affect the functionality
|
||||
// of the object.
|
||||
return hb_bytes_t (head, tail - head).hash () ^
|
||||
return hb_bytes_t (head, hb_min (128, tail - head)).hash () ^
|
||||
real_links.as_bytes ().hash ();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user