Thread (8 messages) 8 messages, 3 authors, 2016-06-15

Re: [PATCH v3 10/21] pack-bitmap: add support for bitmap indexes

From: Jeff King <hidden>
Date: 2016-06-15 22:59:20

Possibly related (same subject, not in this thread)

On Wed, Nov 27, 2013 at 10:08:56AM +0100, Karsten Blees wrote:
Khash is OK for sha1 keys, but I don't think it should be advertised
as a second general purpose hash table implementation. Its far too
easy to shoot yourself in the foot by using 'straightforward' hash-
and comparison functions. Khash doesn't store the hash codes of the
keys, so you have to take care of that yourself or live with the
performance penalties (see [1]).

[1] http://article.gmane.org/gmane.comp.version-control.git/237876
Yes. I wonder if we should improve it in that respect. I haven't looked
carefully at the hash code you posted elsewhere, but I feel like many
uses will want a macro implementation to let them store arbitrary types
smaller or larger than a pointer.

-Peff
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help