From 07378b9203f949fb7a475115051edb09f134d8ff Mon Sep 17 00:00:00 2001 From: Hector Martin Date: Mon, 12 Oct 2009 06:10:50 +0200 Subject: optimize: persist fdlist for duration of main_loop constant malloc and realloc was wasting lots of time --- common/utils.h | 1 + 1 file changed, 1 insertion(+) (limited to 'common/utils.h') diff --git a/common/utils.h b/common/utils.h index ad4ac9d..f9cfa93 100644 --- a/common/utils.h +++ b/common/utils.h @@ -39,6 +39,7 @@ struct fdlist { void fdlist_create(struct fdlist *list); void fdlist_add(struct fdlist *list, enum fdowner owner, int fd, short events); void fdlist_free(struct fdlist *list); +void fdlist_reset(struct fdlist *list); struct collection { void **list; -- cgit v1.1-32-gdbae