[PATCH] bitmap:improve memory usage using CHAR_BITS and unsigned CHAR

David Bremner david at tethera.net
Sat Feb 16 03:37:37 PST 2013


Robert Mast <beheerder at tekenbeetziekten.nl> writes:

> Using char instead of int allows for simpler definitions of the
> DOCIDSET macros so the code is easier to understand and consistent with
> respect to memory-usage. Estimated reduction of memory-usage for
> bitmap about 8 times.

Pushed to master.

I did a bit of testing, and this yields about a 7% improvement in the
total memory allocated on the medium corpus (running
performance-tests/M00-new) and about a 3% speedup running the large
corpus.  These are definitely improvements worth having, but I think I
won't push it to the bug fix release, but rather wait for the next
regular release.

d




More information about the notmuch mailing list