summaryrefslogtreecommitdiff
path: root/src/oidmap.h
Commit message (Collapse)AuthorAgeFilesLines
* Add callback to git_objects_tableRussell Belfer2013-04-221-2/+2
| | | | | | | | | | This adds create and free callback to the git_objects_table so that more of the creation and destruction of objects can be table driven instead of using switch statements. This also makes the semantics of certain object creation functions consistent so that we can make better use of function pointers. This also fixes a theoretical error case where an object allocation fails and we end up storing NULL into the cache.
* lol this worked first try wtfVicent Marti2013-04-221-4/+2
|
* update copyrightsEdward Thomson2013-01-081-1/+1
|
* git_oid_cmp: inline memcmp by hand to optimizeMichael Schubert2012-07-291-6/+1
| | | | | | | | | git.git uses an inlined hashcmp function instead of memcmp, since it performes much better when comparing hashes (most hashes compared diverge within the first byte). Measurements and rationale for the curious reader: http://thread.gmane.org/gmane.comp.version-control.git/172286
* Missed a couple of khash inline dependenciesRussell Belfer2012-07-121-1/+1
|
* Rename git_khash_str to git_strmap, etc.Russell Belfer2012-04-251-0/+42
This renamed `git_khash_str` to `git_strmap`, `git_hash_oid` to `git_oidmap`, and deletes `git_hashtable` from the tree, plus adds unit tests for `git_strmap`.