diff options
author | Jacques Lucke <jacques@blender.org> | 2021-03-22 19:06:02 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2021-03-22 19:06:27 +0300 |
commit | 21268ad20ae2f672e116e06721c5e46ee63a1c9b (patch) | |
tree | d594bf6fa7e7794e0103ea135538ffc2fc38be24 /source/blender/editors/space_buttons | |
parent | 6cec782970f9924aaa1a49cfff8a2e43efaf559e (diff) |
Functions: devirtualize virtual arrays in simple functions
In some multi-functions (such as a simple add function), the virtual method
call overhead to access array elements adds significant overhead. For these
simple functions it makes sense to generate optimized versions for different
types of virtual arrays. This is done by giving the compiler all the information
it needs to devirtualize virtual arrays.
In my benchmark this speeds up processing a lot of data with small function 2-3x.
This devirtualization should not be done for larger functions, because it increases
compile time and binary size, while providing a negilible performance benefit.
Diffstat (limited to 'source/blender/editors/space_buttons')
0 files changed, 0 insertions, 0 deletions