mirror of
https://github.com/simonmichael/hledger.git
synced 2025-01-07 11:19:32 +03:00
6f92e70575
accountsFromPostings is currently doing excessive work when adding up postings in each account. It sorts (accountName, amount) tuples which cause amounts in them to be compared. There is no need to look at amount here at all since subsequent summing up and counting does not depend on order. It is enough to sort by accountname only. Went through similar pieces of code, made them all look uniform. |
||
---|---|---|
.. | ||
Account.hs | ||
AccountName.hs | ||
Amount.hs | ||
AutoTransaction.hs | ||
Commodity.hs | ||
Dates.hs | ||
Journal.hs | ||
Ledger.hs | ||
MarketPrice.hs | ||
Period.hs | ||
Posting.hs | ||
RawOptions.hs | ||
StringFormat.hs | ||
Timeclock.hs | ||
Transaction.hs | ||
Types.hs |