diff options
author | Johannes Schindelin <Johannes.Schindelin@gmx.de> | 2006-02-12 02:57:57 +0100 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-02-12 05:12:39 -0800 |
commit | 070879ca93a7d358086f4c8aff4553493dcb9210 (patch) | |
tree | 741a4ebdfc6cb5898c5229d9d2b78c03ad5aafc4 /object.h | |
parent | 5b766ea9014b4121cb72f424633b6bf9a97308a0 (diff) | |
download | git-070879ca93a7d358086f4c8aff4553493dcb9210.tar.gz |
Use a hashtable for objects instead of a sorted list
In a simple test, this brings down the CPU time from 47 sec to 22 sec.
Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'object.h')
-rw-r--r-- | object.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -23,7 +23,7 @@ struct object { }; extern int track_object_refs; -extern int nr_objs; +extern int obj_allocs; extern struct object **objs; /** Internal only **/ |