minetest/src/unittest
Loïc Blot e8ac5a31cf
Optimize get_objects_inside_radius calls (#9671)
* Optimize getObjectsInsideRadius calls

our previous implementation calls the ActiveObjectMgr to return ids and then lookup those ids in the same map and test each object
Instead now we call the global map to return the pointers directly and we ask filtering when building the list using lamba.

This drop double looping over ranges of active objects (and then filtered one) and drop x lookups on the map regarding the first call results
2020-04-16 08:25:48 +02:00
..
test_world Inventory: Send dirty lists where appropriate (#8742) 2019-08-24 19:07:38 +02:00
CMakeLists.txt Add Irrlicht-specific smart pointer (#6814) 2019-04-12 17:27:39 +01:00
test.cpp Fix compare between pointer and 0 in unittests 2019-08-13 14:44:32 +02:00
test.h Revert 6587 - Optimize entity-entity collision (#7539) 2018-07-08 21:30:55 +01:00
test_activeobject.cpp Add unittests on ActiveObject and BanManager class (#6866) 2018-01-01 18:48:52 +01:00
test_address.cpp LINT fix 2019-02-15 12:27:29 +01:00
test_areastore.cpp Fix AreaStore's IDs persistence (#8888) 2019-09-21 17:54:52 +02:00
test_authdatabase.cpp Fix temporary path crash in TestAuthDatabase (#7753) 2018-09-28 20:12:11 +02:00
test_ban.cpp Add unittests on ActiveObject and BanManager class (#6866) 2018-01-01 18:48:52 +01:00
test_clientactiveobjectmgr.cpp Add an activeobject manager to hold active objects (#7939) 2018-12-13 20:18:54 +01:00
test_collision.cpp Collision various fixes (#9343) 2020-04-08 22:45:05 +02:00
test_compression.cpp Add limit parameter to decompressZlib 2020-02-01 14:05:26 +01:00
test_config.h.in Server: delegate mod management & config to ServerModConfiguration (#7131) 2018-03-16 08:41:33 +01:00
test_connection.cpp Add a MSVC / Windows compatible snprintf function (#7353) 2018-07-22 21:56:06 +02:00
test_eventmanager.cpp Client eventmanager refactor (#7179) 2018-03-30 18:32:52 +02:00
test_filepath.cpp Fix RemoveRelatvePathComponents 2016-12-20 17:17:38 +10:00
test_gameui.cpp LINT fix 2018-05-29 22:22:14 +02:00
test_inventory.cpp Inventory: Send dirty lists where appropriate (#8742) 2019-08-24 19:07:38 +02:00
test_irrptr.cpp Add Irrlicht-specific smart pointer (#6814) 2019-04-12 17:27:39 +01:00
test_keycode.cpp Move client-specific files to 'src/client' (#7902) 2018-11-28 20:01:49 +01:00
test_map_settings_manager.cpp Move files to subdirectories (#6599) 2017-11-08 23:56:20 +01:00
test_mapnode.cpp Node definition manager refactor (#7016) 2018-02-10 21:04:16 +01:00
test_modchannels.cpp Implement mod communication channels (#6351) 2017-09-26 00:11:20 +02:00
test_nodedef.cpp Modernize source code: last part (#6285) 2017-08-20 13:30:50 +02:00
test_noderesolver.cpp Node definition manager refactor (#7016) 2018-02-10 21:04:16 +01:00
test_noise.cpp Fix many issues reported by clang-tidy (#7189) 2018-04-02 23:51:08 +02:00
test_objdef.cpp Pass clang-format on various cpp/header files (#5559) 2017-04-23 09:52:40 +02:00
test_player.cpp Drop content_sao.{cpp,h} 2020-04-11 16:07:17 +02:00
test_profiler.cpp Pass clang-format on various cpp/header files (#5559) 2017-04-23 09:52:40 +02:00
test_random.cpp Fix many issues reported by clang-tidy (#7189) 2018-04-02 23:51:08 +02:00
test_schematic.cpp Node definition manager refactor (#7016) 2018-02-10 21:04:16 +01:00
test_serialization.cpp Proselytize the network. Use IEEE F32 (#8030) 2019-01-03 17:04:26 +01:00
test_server_shutdown_state.cpp Server: move shutdown parts to a specific shutdown state object (#7437) 2018-06-13 21:58:34 +02:00
test_serveractiveobjectmgr.cpp Optimize get_objects_inside_radius calls (#9671) 2020-04-16 08:25:48 +02:00
test_servermodmanager.cpp Inventory: Send dirty lists where appropriate (#8742) 2019-08-24 19:07:38 +02:00
test_settings.cpp Settings: Add get_flags API for mapgen flags (mg_flags, mgv6_spflags, ...) (#9284) 2020-01-25 16:56:54 +01:00
test_socket.cpp Network cleanup (#6302) 2017-08-24 08:28:54 +02:00
test_threading.cpp Code modernization: subfolders (#6283) 2017-08-19 22:23:47 +02:00
test_utilities.cpp StaticText/EnrichedString: Styling support (#9187) 2020-01-22 19:09:11 +01:00
test_voxelalgorithms.cpp Node definition manager refactor (#7016) 2018-02-10 21:04:16 +01:00
test_voxelarea.cpp Add Voxelarea unittests (#7121) 2018-03-11 21:16:19 +01:00
test_voxelmanipulator.cpp Node definition manager refactor (#7016) 2018-02-10 21:04:16 +01:00