summaryrefslogtreecommitdiff
path: root/binary.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2004-08-25 01:47:55 -0400
committerJohn Wiegley <johnw@newartisans.com>2004-08-25 01:47:55 -0400
commit6febfc3b4cd6b374479f34070da9a772f9ff5699 (patch)
tree941ff96e45bd412003be1dab05baf1f9404bf001 /binary.h
parentc6860970f27ed1f0d9b9543da46ffffa5c20e8f6 (diff)
downloadfork-ledger-6febfc3b4cd6b374479f34070da9a772f9ff5699.tar.gz
fork-ledger-6febfc3b4cd6b374479f34070da9a772f9ff5699.tar.bz2
fork-ledger-6febfc3b4cd6b374479f34070da9a772f9ff5699.zip
Bulk alloc bigints in the binary reader; this gains another 20%
Diffstat (limited to 'binary.h')
-rw-r--r--binary.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/binary.h b/binary.h
index a1ab60c2..187cdcb8 100644
--- a/binary.h
+++ b/binary.h
@@ -18,7 +18,9 @@ class binary_parser_t : public parser_t
const std::string * original_file = NULL);
};
-extern std::deque<amount_t::bigint_t *> bigints;
+extern amount_t::bigint_t * bigints;
+extern amount_t::bigint_t * bigints_next;
+extern unsigned int bigints_count;
void write_binary_journal(std::ostream& out,
journal_t * journal,