From 070879ca93a7d358086f4c8aff4553493dcb9210 Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Sun, 12 Feb 2006 02:57:57 +0100 Subject: 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 Signed-off-by: Junio C Hamano --- object.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'object.h') diff --git a/object.h b/object.h index 0e7618283c..e08afbd29f 100644 --- a/object.h +++ b/object.h @@ -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 **/ -- cgit v1.2.3