[Zope-dev] SVN: zope.index/trunk/ - Port okascore.c optimization used in okapiiindex from Zope2 catalog
Tres Seaver
tseaver at palladion.com
Tue Jun 9 20:07:11 EDT 2009
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Chris McDonough wrote:
> Log message for revision 100775:
> - Port okascore.c optimization used in okapiiindex from Zope2 catalog
> implementation. This module is compiled conditionally, based on
> whether your environment has a working C compiler.
>
> - Don't use ``len(self._docweight)`` in okapiindex _search_wids method
> (obtaining the length of a BTree is very expensive at scale).
> Instead use self.documentCount(). Also a Zope2 port.
Crap! this set of performance fixes was added *six years ago* to the
Zope2 version from which zope.index was forked!
Hasn't anybody been using this package?
Tres.
- --
===================================================================
Tres Seaver +1 540-429-0999 tseaver at palladion.com
Palladion Software "Excellence by Design" http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFKLvkv+gerLs4ltQ4RAqC8AKCjJefCXo3eXBiW5cH1uC+70Qz/lQCcD6t2
o0aJ+MhKZBWUT/CKhXKD9+Y=
=gHGc
-----END PGP SIGNATURE-----
More information about the Zope-Dev
mailing list