Commit graph

81 commits

Author SHA1 Message Date
John Wiegley
c5d519447e fixed a rather obscure memory bug, which also simplified some code 2004-09-24 05:25:52 -04:00
John Wiegley
9f8a32ab48 fixed several issues in value_t's core 2004-09-21 03:41:40 -04:00
John Wiegley
6c66d1e0ef improvements to python exposure of commodity_t 2004-09-11 02:18:04 -04:00
John Wiegley
e414123ecb change commodity->symbol to const, and added set_symbol 2004-09-10 05:07:50 -04:00
John Wiegley
63367e3aac the amount/balance/value logic is now a library, completely separate from ledger 2004-08-29 23:32:29 -04:00
John Wiegley
2d62f7b633 redid the way amount_t::commodity is handled; no more direct access 2004-08-29 04:31:59 -04:00
John Wiegley
032afa5657 a bit of a reorg; still much more to go 2004-08-29 03:23:55 -04:00
John Wiegley
b4304515ff ledger.so (the python module) now builds based on autoconf discovery 2004-08-28 04:26:48 -04:00
John Wiegley
16841fbae3 added (disabled) code for Boost.Python 2004-08-27 23:38:39 -04:00
John Wiegley
3c50b2fb7a read all binary data in at one go; gains 33% 2004-08-26 15:35:14 -04:00
John Wiegley
942943323e don't placement new() amount_t in binary.cc when it isn't necessary 2004-08-26 14:31:50 -04:00
John Wiegley
69bd31b4d0 added usual operator 2004-08-25 21:51:11 -04:00
John Wiegley
ac000a67c4 fixed two memory corruption bugs 2004-08-25 21:02:07 -04:00
John Wiegley
ab86cd8c37 added asserts to, and proof-read, amount.cc 2004-08-25 17:34:23 -04:00
John Wiegley
6febfc3b4c Bulk alloc bigints in the binary reader; this gains another 20% 2004-08-25 01:47:55 -04:00
John Wiegley
1fd37a432d cleanup; fully switched to autoconf -- use scripts/acprep 2004-08-24 02:11:32 -04:00
John Wiegley
73e2abd1b2 a little cleanup; reversed the meaning of -z and -p (to be more mnemonic) 2004-08-23 18:23:31 -04:00
John Wiegley
ea3bf5d720 Removed dependency on libgmpxx.a 2004-08-23 08:25:40 -04:00
John Wiegley
6365b8b7a8 simplified some code 2004-08-22 18:34:18 -04:00
John Wiegley
5619a1d5be a little more reorganizing, but only fractionally faster. diminishing returns! 2004-08-22 02:13:41 -04:00
John Wiegley
6d5333b896 use value_t instead of balance_pair_t; gains for 10% binary, 2% textual 2004-08-21 23:18:45 -04:00
John Wiegley
c1e5119e97 fixes so that ledger will build optimized 2004-08-21 16:15:55 -04:00
John Wiegley
000bfe1cec only compute the cost when it differs from the amount 2004-08-21 15:55:03 -04:00
John Wiegley
86ac953379 tracked down a tricky memory leak in value.h 2004-08-21 05:40:06 -04:00
John Wiegley
7dbd7bce59 more cleanup 2004-08-21 04:58:49 -04:00
John Wiegley
6392b01799 moved some debug code around 2004-08-21 04:09:07 -04:00
John Wiegley
b030416982 fixes to how commodities are looked up using quotes.cc 2004-08-21 03:54:27 -04:00
John Wiegley
fb91d6f21e add copy-on-write semantics to amount.cc; cuts object creation by 5x 2004-08-21 03:23:17 -04:00
John Wiegley
06ac87ab20 support arbitrary precision after the decimal point; increase speed 0-10% 2004-08-21 01:43:50 -04:00
John Wiegley
61cc6c5a9a fixes to quote downloading 2004-08-19 03:01:24 -04:00
John Wiegley
f62a4906d1 fix to textual parsing, and a bit of reconstruction in main.cc 2004-08-19 02:30:56 -04:00
John Wiegley
55d58940ce speed improvements; my "bal" script is cut to a third 2004-08-17 22:18:38 -04:00
John Wiegley
019a42f199 fixes 2004-08-17 16:10:48 -04:00
John Wiegley
325cf53ea7 several significant speed improvements (removed excessive copying of strings) 2004-08-17 04:57:38 -04:00
John Wiegley
9e235d04a1 fixes 2004-08-17 03:43:29 -04:00
John Wiegley
aeb2fd0d39 misc cleanup 2004-08-17 03:39:51 -04:00
John Wiegley
b009998930 if NO_CLEANUP is defined in the Makefile (now default), no cleanup is done 2004-08-17 03:09:46 -04:00
John Wiegley
7189b181ef further restructuring 2004-08-15 17:08:56 -04:00
John Wiegley
bb044f8820 fix to amount printing 2004-08-14 00:32:44 -04:00
John Wiegley
42298cefd5 optimized printing of amounts 2004-08-14 00:29:52 -04:00
John Wiegley
0cac03ba7d performance tweaks 2004-08-13 17:41:29 -04:00
John Wiegley
0c8dff61ed fixed problem with writing binary amounts 2004-08-13 17:29:46 -04:00
John Wiegley
0f2ed1f5e3 write amounts out to the binary file in binary format 2004-08-12 20:41:29 -04:00
John Wiegley
b7777eac68 got entry working again 2004-08-07 22:25:12 -04:00
John Wiegley
5db1e1165b improvements to transaction formatting 2004-08-06 21:38:27 -04:00
John Wiegley
1741c80fe4 rewrote the way registers are computed -- again 2004-08-04 03:12:26 -04:00
John Wiegley
f570e6644f brought back the "print" and "equity" reports; this time much better! 2004-07-31 07:42:34 -04:00
John Wiegley
94e76ae87e two major changes
Complete changed the way format strings are handled.  They are now
compiled first, which is far more efficient than what was being done
before.

Also, there is now a global ledger::commodity_t::commodities map,
which saves me from having to pass the current journal around to a
zillion different functions, for the sole purpose of making sure that
all commodity symbols that are parsed refer to the same commodity
object.
2004-07-30 21:57:02 -04:00
John Wiegley
161d6f79bd initial rev of 2.0 2004-07-26 23:33:51 -04:00
John Wiegley
fde56d0f12 fix to european number handling 2004-07-18 04:24:49 -04:00