diff options
author | Matthew Cline <zelgadis@sourceforge.net> | 2009-11-10 02:08:57 -0800 |
---|---|---|
committer | Matthew Cline <zelgadis@sourceforge.net> | 2009-11-10 02:13:09 -0800 |
commit | 75921593c0f8f33133034bc56dc94d956d2afd67 (patch) | |
tree | f674de5fd73a8ab1dd507c3813e2dcde90327d91 /crawl-ref/source/describe.cc | |
parent | 5e9e9773f748ab17c8298cd212c77bf5ea1b2051 (diff) | |
download | crawl-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/describe.cc')
-rw-r--r-- | crawl-ref/source/describe.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/describe.cc b/crawl-ref/source/describe.cc index f1e22443d4..f4a57bef67 100644 --- a/crawl-ref/source/describe.cc +++ b/crawl-ref/source/describe.cc @@ -2100,7 +2100,7 @@ void set_feature_desc_long(const std::string &raw_name, CrawlHashTable &props = env.properties; if (!props.exists(LONG_DESC_KEY)) - props[LONG_DESC_KEY].new_table(SV_STR); + props[LONG_DESC_KEY].new_table(); CrawlHashTable &desc_table = props[LONG_DESC_KEY].get_table(); |