mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-22 15:31:05 +01:00
[vector] Remove explicit std::move
Was confusing compilers. Let them figure it out themselves. Makes NotoNastaliqu subsetting/1000 benchmark more than twice faster: Benchmark Time CPU Time Old Time New CPU Old CPU New ------------------------------------------------------------------------------------------------------------------------------------------------------------ BM_subset/subset_glyphs/NotoNastaliqUrdu-Regular.ttf/1000 -0.5064 -0.5065 111 55 110 55 BM_subset/subset_codepoints/NotoNastaliqUrdu-Regular.ttf/1000 -0.5494 -0.5493 132 59 131 59
This commit is contained in:
1 parent
c81198b5bc
commit
76fc27713f
1 file changed
+1
-1
+1
-1
@@ -340,7 +340,7 @@ struct hb_vector_t : std::conditional<sorted, hb_vector_t<Type, false>, hb_empty
|
||||
Type pop ()
|
||||
{
|
||||
if (!length) return Null (Type);
|
||||
Type v = std::move (arrayZ[length - 1]);
|
||||
Type v = arrayZ[length - 1];
|
||||
arrayZ[length - 1].~Type ();
|
||||
length--;
|
||||
return v;
|
||||
|
||||
Reference in new issue
Block a user