forked from Mirrorlandia_minetest/minetest
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 |
||
---|---|---|
.. | ||
common | ||
cpp_api | ||
lua_api | ||
CMakeLists.txt | ||
scripting_game.cpp | ||
scripting_game.h | ||
scripting_mainmenu.cpp | ||
scripting_mainmenu.h |