> I tried ledger 3.0 after using a combination of ledger 2.5 and 2.6 happily
> for many years. I've found 3.0 to be too slow for my needs. My ledger file
> is huge and I use the emacs reconcile mode extensively, which calls ledger
> frequently, so performance issues are very noticeable.
> Please note that this really isn't a complaint. I know 3.0 brings a lot of
> new functionality and bug fixes, and performance may be perfectly fine for
> normal size ledger files. I just wanted to report this in case I'm doing
> something wrong or there exist some easy ways to improve 3.0
> performance. For the moment, I'm sticking with 2.5 since it works perfectly
> for me.
Hi Vinod!
As always, I am extremely concerned about performance, and will go to great
lengths to achieve it, since this is a CLI tool meant to be executed many
times. Now, there are some correctness issues which will prevent 3.0 from
being faster than 2.x at times, but it shouldn't be pathologically slower --
as your data definitely shows.
So, my first questions are: What OS? What compiler? How did you build Boost
and which compiler flags? How did you build Ledger and which compiler flags?
Thanks,
John
So, my first questions are: What OS? What compiler? How did you build Boostand which compiler flags? How did you build Ledger and which compiler flags?
Please refer to this thread and particularly last message of the
thread.
http://groups.google.com/group/ledger-cli/browse_thread/thread/da86281229a3fabd/
> I wonder if those '--enable-debug' lines are what's hurting me. Let me know
> if I can provide any other info.
Oh, yes indeed. The debug build of 3.0 is significantly slower. Please try
this:
./acprep opt
That should cure some of your problems, with the exception that -V can become
quite slow in certain circumstances.
John
Oh, yes indeed. The debug build of 3.0 is significantly slower. Please trythis:
./acprep opt
That should cure some of your problems, with the exception that -V can become
quite slow in certain circumstances.
Related, I note that ledger stats counts postings but not transactions, while hledger stats does the reverse.
Just curious, could you share roughly how many transactions and accounts are in that file ?
Related, I note that ledger stats counts postings but not transactions, while hledger stats does the reverse.
Unique payees: 3633Unique accounts: 820Number of postings: 47493
Accounts: 820 (depth 5)Payees/descriptions: 3633Transactions: 19303
Thanks! Real-world numbers are useful. Ignore me if you have better things to do, but now I wonder how long your optimized ledger and hopefully optimized hledger (the default with cabal install) took to complete the stats command.