Hi John,

I did (first "acprep distclean" and then) "acprep opt update" as advised.
This improved performance a lot.
But, see below, ledger v3 is still slower than ledger v2 by a ratio varying
between 2.17 and 3.76.
26 seconds is a bit long for me, but acceptable compared to previous 5
minutes.

As an experiment, I played with "acprep gprof update" in a duplicated
directory. My input ledger file contains 24920 non empty lines. and I was
surprised by the number of calls to some ledger functions (between 150 and
200 millions of calls). I do not know if there is anything to dig in this
area. I can send gprof output if needed.

Thierry


$ time ledger3 --european -f thierry.ledger --price-db prices.db -V reg
^Actif ^Passif >/dev/null
real    0m26.328s
user    0m25.820s
sys    0m0.110s
$ time ledger -f thierry.ledger --price-db prices.db -V reg ^Actif ^Passif
>/dev/null
real    0m6.988s
user    0m6.730s
sys    0m0.220s

$ time ledger3 --european -f thierry.ledger -V reg ^Actif ^Passif >/dev/null
real    0m24.833s
user    0m24.720s
sys    0m0.100s
$ time ledger -f thierry.ledger -V reg ^Actif ^Passif >/dev/null
real    0m7.049s
user    0m6.840s
sys    0m0.200s

$ time ledger3 --european -f thierry.ledger --price-db prices.db reg ^Actif
^Passif >/dev/null
real    0m4.948s
user    0m4.700s
sys    0m0.230s
$ time ledger -f thierry.ledger --price-db prices.db reg ^Actif ^Passif
>/dev/null
real    0m2.277s
user    0m1.970s
sys    0m0.280s


$ grep -c -v -E "^[:spaces:]*$" thierry.ledger
24920



On Sun, Feb 28, 2010 at 11:02 PM, John Wiegley <[email protected]> wrote:

> On Feb 28, 2010, at 5:28 AM, Thierry Daucourt wrote:
>
> How did you build it?
>>
>
> cd ledger && ./acprep update
>
>
> Try using "acprep opt update" instead, since right now you are building
> with full debugging on.  That tends to make things many times slower.
>
> John
>
>

Reply via email to