summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/dungeon.cc
diff options
context:
space:
mode:
authorMatthew Cline <zelgadis@sourceforge.net>2009-11-10 02:08:57 -0800
committerMatthew Cline <zelgadis@sourceforge.net>2009-11-10 02:13:09 -0800
commit75921593c0f8f33133034bc56dc94d956d2afd67 (patch)
treef674de5fd73a8ab1dd507c3813e2dcde90327d91 /crawl-ref/source/dungeon.cc
parent5e9e9773f748ab17c8298cd212c77bf5ea1b2051 (diff)
downloadcrawl-ref-75921593c0f8f33133034bc56dc94d956d2afd67.tar.gz
crawl-ref-75921593c0f8f33133034bc56dc94d956d2afd67.zip
CrawlHashTable: reduce RAM overhead
The RAM overhead for an unused CrawlHash table has been reduced from 32 to 4 (on 32 bit systems), with an increased overhead of 4 bytes for ones which are used. This leads to a 35% RAM reduction for item_def instances with an unused props field.
Diffstat (limited to 'crawl-ref/source/dungeon.cc')
-rw-r--r--crawl-ref/source/dungeon.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/dungeon.cc b/crawl-ref/source/dungeon.cc
index 6870e90476..f2f46d92ad 100644
--- a/crawl-ref/source/dungeon.cc
+++ b/crawl-ref/source/dungeon.cc
@@ -955,8 +955,8 @@ void dgn_reset_level()
env.properties.clear();
// Set up containers for storing some level generation info.
- env.properties[LEVEL_VAULTS_KEY].new_table(SV_STR);
- env.properties[TEMP_VAULTS_KEY].new_table(SV_STR);
+ env.properties[LEVEL_VAULTS_KEY].new_table();
+ env.properties[TEMP_VAULTS_KEY].new_table();
env.properties[LEVEL_EXTRAS_KEY].new_vector(SV_STR);
// Blank level with DNGN_ROCK_WALL.