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/clientmedia.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/clientmedia.cpp') diff --git a/src/clientmedia.cpp b/src/clientmedia.cpp index 7eb505314..1d825c143 100644 --- a/src/clientmedia.cpp +++ b/src/clientmedia.cpp @@ -488,7 +488,7 @@ void ClientMediaDownloader::startConventionalTransfers(Client *client) if (m_uncached_received_count != m_uncached_count) { // Some media files have not been received yet, use the // conventional slow method (minetest protocol) to get them - std::list file_requests; + std::vector file_requests; for (std::map::iterator it = m_files.begin(); it != m_files.end(); ++it) { -- cgit v1.2.3