mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-24 00:11:14 +01:00
[calculate_scalar] Only jumpskip if num-coords >= 16
Otherwise, it was slowing down GoogleSansFlex rendering.
This commit is contained in:
1 parent
22c876331a
commit
0f6fecfaf4
1 file changed
+8
-2
@@ -152,12 +152,18 @@ struct TupleVariationHeader
|
||||
}
|
||||
|
||||
double scalar = 1.0;
|
||||
#ifndef HB_OPTIMIZE_SIZE
|
||||
#if HB_FAST_NUM_ACCESS
|
||||
bool skip = coord_count >= 16;
|
||||
#endif
|
||||
#endif
|
||||
for (unsigned int i = 0; i < coord_count; i++)
|
||||
{
|
||||
#ifndef HB_OPTIMIZE_SIZE
|
||||
#if HB_FAST_NUM_ACCESS
|
||||
while (i + 4 < coord_count && * (HBUINT64LE *) &peak_tuple[i] == 0)
|
||||
i += 4;
|
||||
if (skip)
|
||||
while (i + 4 < coord_count && * (HBUINT64LE *) &peak_tuple[i] == 0)
|
||||
i += 4;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
Reference in new issue
Block a user