mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-22 07:21:06 +01:00
[hvgl] Micro-optimize vector resize
This commit is contained in:
1 parent
3bb4ee78c1
commit
cd269e206a
1 file changed
+1
-1
@@ -119,7 +119,7 @@ PartShape::get_path_at (const struct hvgl &hvgl,
|
||||
if (le)
|
||||
{
|
||||
// Endianness matches; Faster to memcpy().
|
||||
v.resize (a.length);
|
||||
v.resize (a.length, false);
|
||||
memcpy (v.arrayZ, a.arrayZ, v.length * sizeof (v[0]));
|
||||
}
|
||||
else
|
||||
|
||||
Reference in new issue
Block a user