mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Performance improvement: Use std::list instead of std::vector for request_media, Server::getModNames, Environment::m_simple_objects.
* Also remove unused Server::m_modspaths
This commit is contained in:
parent
b214cde5b4
commit
365e4ae0fa
8 changed files with 16 additions and 21 deletions
|
@ -327,7 +327,7 @@ public:
|
|||
IWritableCraftDefManager* getWritableCraftDefManager();
|
||||
|
||||
const ModSpec* getModSpec(const std::string &modname);
|
||||
void getModNames(std::list<std::string> &modlist);
|
||||
void getModNames(std::vector<std::string> &modlist);
|
||||
std::string getBuiltinLuaPath();
|
||||
inline std::string getWorldPath()
|
||||
{ return m_path_world; }
|
||||
|
@ -588,9 +588,6 @@ private:
|
|||
Random stuff
|
||||
*/
|
||||
|
||||
// Mod parent directory paths
|
||||
std::list<std::string> m_modspaths;
|
||||
|
||||
bool m_shutdown_requested;
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue