[codegen] unnecessary vector resize and vector copy
izgzhen opened this issue · 3 comments
izgzhen commented
details will be refined later
izgzhen commented
Line 262 in 292f9dd
This resize
will be emitted no matter whether the new size is same as the old size. I observed its impact to performance in one of our internal example.
izgzhen commented
https://github.com/CozySynthesizer/cozy/blob/master/cozy/structures/heaps.py: extra copying of vector is probably here, I will add more later when I bumped into it again.
izgzhen commented
A separating benchmarking (citation missing here, but .... anyway). so 1 WONT-FIX.
Need example for 2, WONT-FIX until I can write it down crystal-clear.