diff engine/core/util/resource/pool.h @ 100:69a7d40ccf62

added hashing to pool to improve techdemo loading time
author jasoka@33b003aa-7bff-0310-803a-e67f0ece8222
date Tue, 22 Jul 2008 13:07:51 +0000
parents 90005975cdbb
children 54b3984e1afc
line wrap: on
line diff
--- a/engine/core/util/resource/pool.h	Tue Jul 22 10:04:16 2008 +0000
+++ b/engine/core/util/resource/pool.h	Tue Jul 22 13:07:51 2008 +0000
@@ -151,6 +151,8 @@
 
 		void findAndSetProvider(PoolEntry& entry);
 		std::vector<PoolEntry*> m_entries;
+		typedef std::map<ResourceLocation, int> ResourceLocationToEntry;
+		ResourceLocationToEntry m_location_to_entry;
 		std::vector<IPoolListener*> m_listeners;
 		std::vector<ResourceLoader*> m_loaders;
 		int m_curind;