bug-recutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-recutils] Selection is extremely slow when fields with common name


From: John Darrington
Subject: [bug-recutils] Selection is extremely slow when fields with common name exist
Date: Tue, 30 Jul 2013 19:57:01 +0200
User-agent: Mutt/1.5.20 (2009-06-14)

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, 
like:

junk: a1
junk: a2
junk: a3
.
.
.

It is super fast, if the names are unique, like
junk1: a1
junk2: a2
junk3: a3
.
.


#/bin/bash

echo 'Name: This' > foo.rec

for f in `seq 1 1000` ; do
  echo "junk: xx$f" >> foo.rec
done
echo  >> foo.rec
echo 'Name: That' >> foo.rec

recsel -e 'Name = "That"' foo.rec

-- 
PGP Public key ID: 1024D/2DE827B3 
fingerprint = 8797 A26D 0854 2EAB 0285  A290 8A67 719C 2DE8 27B3
See http://keys.gnupg.net or any PGP keyserver for public key.

Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]