[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-recutils] Selection is extremely slow when fields with common n
From: |
Jose E. Marchesi |
Subject: |
Re: [bug-recutils] Selection is extremely slow when fields with common name exist |
Date: |
Thu, 08 Aug 2013 17:02:14 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
Hi John.
Running the script below, the recsel command takes forever (and eventually
crashed). It seems to be related to having multiple fields with the
same name,
I just committed a patch with an optimization in the SEX expression
evaluator: now it does not eval the expression in permutations of field
names which are _not_ part of the expression. This makes the evaluation
of your example sex
./utils/recsel -e 'Name = "That"' foo.rec
immediate, but only because 'junk' does not appear in the selection
expression. If the expression was
./utils/recsel -e 'junk = "That"' foo.rec
then we would be back to the slowness.
Well, this is better than nothing :) More idas for optimizing the
evaluator highly welcomed!
- Re: [bug-recutils] Selection is extremely slow when fields with common name exist,
Jose E. Marchesi <=