Skip to content

Draft: util: Use realloc for u_vector_add

Michael Skorokhodov requested to merge GL/mesa:u_vector/faster_add into main

When adding 32 or more objects, the code is 10% faster. For 256, it's about 30% improvement. However, for a small number of objects (4/8/16), this code performs about 10% worse. Preallocated memory can fix it.

dd

Benchmark: link

Edited by Michael Skorokhodov

Merge request reports

Loading