bug-recutils
[Top][All Lists]
Advanced

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

[bug-recutils] Finding rset positions


From: Michał Masłowski
Subject: [bug-recutils] Finding rset positions
Date: Wed, 04 Jul 2012 17:17:41 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux)

Hello.

I have implemented changes needed to lazily load rsets for a database
with a search for %rec: (the lazy-no-index branch of
git://elderthing.mtjm.eu/mtjm-recutils.git, not for merge).  I think a
part of this is all that would be needed to start implementing index
file handling.  The aim would be to not parse an rset unless it's used
and no index can be used for the query.

The performance tests show that it's slightly slower than before these
changes, this could be improved by not getting each character separately
in rset_parser_skip_to_rset (in the search for next rset).  I haven't
changed this, since I don't believe this to benefit many cases, since
most recfiles I have seen have only one rset or don't have multiple big
rsets that would take much time to parse (while they aren't used in
queries).

The next changes for index file handling without indices of records
should solve the same problem in a faster way.

Attachment: pgpgx3gmbC2j6.pgp
Description: PGP signature


reply via email to

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