Blender Git Commit Log

Git Commits -> Revision 4e10b19

Revision 4e10b19 by Jacques Lucke (master)
April 29, 2021, 10:59 (GMT)
Functions: make copying virtual arrays to span more efficient

Sometimes functions expect a span instead of a virtual array.
If the virtual array is a span internally already, great. But if it is
not (e.g. the position attribute on a mesh), the elements have
to be copied over to a span.

This patch makes the copying process more efficient by giving
the compiler more opportunity for optimization.

Commit Details:

Full Hash: 4e10b196ac15339cfded8d5615f04ac40c93e19b
Parent Commit: f903e3a
Lines Changed: +83, -21

3 Modified Paths:

/source/blender/blenlib/BLI_virtual_array.hh (+64, -21) (Diff)
/source/blender/functions/FN_generic_virtual_array.hh (+8, -0) (Diff)
/source/blender/functions/intern/generic_virtual_array.cc (+11, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021