attr: use hashmap for attribute dictionary
commit1a600b7555205f80b276659db4fd521658642505
authorBrandon Williams <bmwill@google.com>
Sat, 28 Jan 2017 02:02:01 +0000 (27 18:02 -0800)
committerJunio C Hamano <gitster@pobox.com>
Wed, 1 Feb 2017 21:46:53 +0000 (1 13:46 -0800)
tree7cce47514bdbb976ab4844c2a8efd9296c3ac37c
parent428103c7f1a0cb8bb1432214efa60abc5bd5f198
attr: use hashmap for attribute dictionary

The current implementation of the attribute dictionary uses a custom
hashtable.  This modernizes the dictionary by converting it to the builtin
'hashmap' structure.

Also, in order to enable a threaded API in the future add an
accompanying mutex which must be acquired prior to accessing the
dictionary of interned attributes.

Signed-off-by: Brandon Williams <bmwill@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
attr.c
attr.h
common-main.c