From 5d48ab8c28925f892e8e7f432f7d2b78c86e95c5 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Tue, 11 Jul 2006 06:13:32 +0000 Subject: Performance improvement hackathon: improve process comparison routines, disable useless code in release builds such as runtime type-checking on dynamic data structures and process fields that are not being computed, faster(?) method for verifying the process owner (still need to ensure correctness), don't destroy and create process objects for hidden kernel threads over and over. Phew. I shouldn't be doing all this today, but I could not resist. --- ListItem.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'ListItem.h') diff --git a/ListItem.h b/ListItem.h index 84d01027..a58db3a3 100644 --- a/ListItem.h +++ b/ListItem.h @@ -24,7 +24,11 @@ typedef struct ListItem_ { } ListItem; +#ifdef DEBUG extern char* LISTITEM_CLASS; +#else +#define LISTITEM_CLASS NULL +#endif ListItem* ListItem_new(char* value, int key); @@ -36,7 +40,7 @@ void ListItem_display(Object* cast, RichString* out); const char* ListItem_getRef(ListItem* this); -int ListItem_compare(const Object* cast1, const Object* cast2); +int ListItem_compare(const void* cast1, const void* cast2); #endif -- cgit v1.2.3