Hi Martin,
So my beancount file takes a humongous time to load: about 2 minutes.
bean-check -v shows:
INFO : Operation: 'beancount.parser.parser' Time: 1412 ms
INFO : Operation: 'beancount.ops.balance' Time: 9500 ms
INFO : Operation: 'beancount.loader (total)' Time: 110842 ms
My hacky solution this far has been to largely disable one of my source files (I have one file per account), which contains about 1.5k transactions out of a total of about 30k transactions. This cuts it down to about 18 seconds. The 1.5k transactions belong to an investment account and thus have stock purchases (and a few sells). If I remove all the balance assertions in it, the beancount.loader (total) goes to about 95 seconds.
61% of the time goes in 'add_amount()'. I'll take a deeper look later on, but thought I'd post here and see if you had any feedback.
Thanks!