hledger/hledger-lib/Hledger
Stephen Morgan 7fe58f1346 lib: More efficiently check whether Amounts are or look zero.
Comparing two Quantity (either with (==) or compare) does a lot of
normalisation (calling roundMax) which is unnecessary if we're comparing
to zero. Do things more directly to save work.

For reg -f examples/10000x10000x10.journal, this results in
- A 12% reduction in heap allocations, from 70GB to 62GB
- A 14% reduction in (profiled) time, from 79s to 70s
Results for bal -f examples/10000x10000x10.journal are of the same order
of magnitude.
2021-03-23 11:26:30 -07:00
..
Data lib: More efficiently check whether Amounts are or look zero. 2021-03-23 11:26:30 -07:00
Read lib,cli,ui,bin: Eliminate all uses of Mixed outside of Hledger.Data.Amount. 2021-03-18 09:47:59 +11:00
Reports doc: Remove incorrect haddock comment. 2021-03-23 11:26:30 -07:00
Utils lib: Expose textConcatBottomPadded. 2021-01-15 12:56:48 -08:00
Data.hs move JSON instances from hledger-web to hledger-lib 2019-12-16 17:17:00 -08:00
Query.hs lib: matchesDescription, matchesPayeeWIP 2021-01-17 16:37:38 -08:00
Read.hs lib,cli: Assorted fixes for older GHC. 2021-01-02 15:08:09 +11:00
Reports.hs lib,cli: Store parsed Query in ReportOpts, rather than an unparsed 2020-10-23 14:14:11 -07:00
Utils.hs lib,cli,ui,bin: Create a new API for MixedAmount arithmetic. This should 2021-03-18 09:47:21 +11:00