Put fish on a diet. Tracked down the biggest memory hogs and fixed them. Total allocations down by a factor of 3 or so, live allocations a few KB.

This commit is contained in:
ridiculousfish
2012-03-03 15:20:30 -08:00
parent 8c0803e3c5
commit 3ead99b088
13 changed files with 177 additions and 104 deletions

View File

@@ -12,7 +12,6 @@
#include "event.h"
#include "function.h"
#include <vector>
#include <deque>
#include <memory>
#define PARSER_TEST_ERROR 1
@@ -34,7 +33,7 @@ struct event_block_t
unsigned int typemask;
};
typedef std::deque<event_block_t> event_block_list_t;
typedef std::list<event_block_t> event_block_list_t;
inline bool event_block_list_blocks_type(const event_block_list_t &ebls, int type) {
for (event_block_list_t::const_iterator iter = ebls.begin(); iter != ebls.end(); ++iter) {