summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tags.h
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/tags.h
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/tags.h')
-rw-r--r--crawl-ref/source/tags.h25
1 files changed, 13 insertions, 12 deletions
diff --git a/crawl-ref/source/tags.h b/crawl-ref/source/tags.h
index c85796bef9..b843a55329 100644
--- a/crawl-ref/source/tags.h
+++ b/crawl-ref/source/tags.h
@@ -49,18 +49,19 @@ enum tag_major_version
// the dungeon Lua changes.
enum tag_minor_version
{
- TAG_MINOR_ARTEFACT = 0, // Turned fixed arts into unrandarts.
- TAG_MINOR_JIYVA = 1, // Added some player bits for Jiyva.
- TAG_MINOR_ZOT_OPEN = 2, // Remember whether Zot was opened.
- TAG_MINOR_JELLY = 3, // Remember whether the royal jelly is dead.
- TAG_ANNOTATE_EXCL = 4, // Store exclusion information for annotations.
- TAG_MINOR_UGLY = 5, // More ghost bits for (very) ugly things.
- TAG_MINOR_ROTTING = 6, // Added monster-specific rotting resistance.
- TAG_MINOR_TRANS = 7, // Keep track of cancellable transformations.
- TAG_MINOR_GITREV = 8, // Removed SVN revision and added Git revision.
- TAG_MINOR_DSTRAITS = 9, // Pre-calculate demonspawn mutations
- TAG_MINOR_YOU_PROP = 10, // Player class has CrawlHashTable
- TAG_MINOR_VERSION = 10 // Current version. (Keep equal to max.)
+ TAG_MINOR_ARTEFACT = 0, // Turned fixed arts into unrandarts.
+ TAG_MINOR_JIYVA = 1, // Added some player bits for Jiyva.
+ TAG_MINOR_ZOT_OPEN = 2, // Remember whether Zot was opened.
+ TAG_MINOR_JELLY = 3, // Remember whether the royal jelly is dead.
+ TAG_ANNOTATE_EXCL = 4, // Store exclusion information for annotations.
+ TAG_MINOR_UGLY = 5, // More ghost bits for (very) ugly things.
+ TAG_MINOR_ROTTING = 6, // Added monster-specific rotting resistance.
+ TAG_MINOR_TRANS = 7, // Keep track of cancellable transformations.
+ TAG_MINOR_GITREV = 8, // Removed SVN revision and added Git revision.
+ TAG_MINOR_DSTRAITS = 9, // Pre-calculate demonspawn mutations
+ TAG_MINOR_YOU_PROP = 10, // Player class has CrawlHashTable
+ TAG_MINOR_SMALL_HASH = 11, // Reduced RAM size of CrawlHashTable
+ TAG_MINOR_VERSION = 11 // Current version. (Keep equal to max.)
};