Blender Git Loki

Git Commits -> Revision a34761a

May 28, 2019, 10:11 (GMT)
Reduce wasted space in Function class

This is achieved by storing strings in a single buffer instead
of using `std::string`, which does small object optimization
for every string individually. This optimization can be done
because all strings are known when the function is build and
don't change later on.

Commit Details:

Full Hash: a34761afc03c1866928695c403b6b725615b6788
Parent Commit: 5c72fb6
Lines Changed: +138, -18

2 Added Paths:

/source/blender/blenlib/BLI_chained_strings.hpp (+57, -0) (View)
/tests/gtests/blenlib/BLI_chained_strings_test.cc (+46, -0) (View)

4 Modified Paths:

/source/blender/blenlib/CMakeLists.txt (+1, -0) (Diff)
/source/blender/functions/core/function.cpp (+12, -3) (Diff)
/source/blender/functions/core/function.hpp (+21, -15) (Diff)
/tests/gtests/blenlib/CMakeLists.txt (+1, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021