mirror of
https://github.com/minetest/minetest.git
synced 2024-11-15 04:03:46 +01:00
7c8793cbea
This greatly reduce the number of std::list generated by caching the result, which is always constant for each radius selected. In the callgrind map, you will see original: * 3.3M calls to std::list for 9700 calls to getFacePositions In the modified version, you will see: * 3.3K calls to std::list for 6900 call to getFacePositions Callgrind map is here: #2321 it's a huge performance improvement to l_find_node_near |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
container.h | ||
directiontables.cpp | ||
directiontables.h | ||
mathconstants.h | ||
numeric.cpp | ||
numeric.h | ||
pointedthing.cpp | ||
pointedthing.h | ||
pointer.h | ||
serialize.cpp | ||
serialize.h | ||
string.cpp | ||
string.h | ||
thread.h | ||
timetaker.cpp | ||
timetaker.h |