List Info

Thread: Better Indexer




Better Indexer
country flaguser name
Germany
2007-10-09 14:47:26
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi!

I was thinking about the Indexer and how we can improve it,
today.
Most notable is that the index for each module that uses it
is
re-created each time Deskbar is started. This is just bad.
Especially
the programs module takes quite some time to index all
.desktop files. I
think the index should be stored to disk and loaded instead
of
re-created on start.

I know that kamstrup already did some work on the index
branch. Maybe we
can use this as a starting point.

To store the index I'm thinking about a module listed at
[1]. They
differ in the type of the value that's stored. If we want to
store any
object we have to use shelve. I personally would prefer to
store just
strings, because with shelve we get problems with objects
from C modules
(we had this problem with storing history in the past).

Comments please ;)

[1]: http://
docs.python.org/lib/module-anydbm.html

- --

Greetings,
Sebastian Pölsterl
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org


iD8DBQFHC9rN1ygZeJ3lLIcRAqCGAJwIXJVTQZdGg2W9ntguOKjFg9cxuACd
G6ox
cKWmqsRBqMYpxFUVp/RORKE=
=/Goz
-----END PGP SIGNATURE-----
_______________________________________________
deskbar-applet-list mailing list
deskbar-applet-listgnome.org
http://mail.gnome.org/mailman/listinfo/deskbar-applet-
list

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )