From 365e4ae0faee79ff7b62396f27667e8315ba94d4 Mon Sep 17 00:00:00 2001 From: Loic Blot Date: Thu, 5 Mar 2015 10:43:08 +0100 Subject: Performance improvement: Use std::list instead of std::vector for request_media, Server::getModNames, Environment::m_simple_objects. * Also remove unused Server::m_modspaths --- src/environment.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/environment.h') diff --git a/src/environment.h b/src/environment.h index 386289307..c9c374413 100644 --- a/src/environment.h +++ b/src/environment.h @@ -521,7 +521,7 @@ private: IGameDef *m_gamedef; IrrlichtDevice *m_irr; std::map m_active_objects; - std::list m_simple_objects; + std::vector m_simple_objects; std::list m_client_event_queue; IntervalLimiter m_active_object_light_update_interval; IntervalLimiter m_lava_hurt_interval; -- cgit v1.2.3