diff options
| author | 2009-10-12 06:10:50 +0200 | |
|---|---|---|
| committer | 2009-10-12 06:10:50 +0200 | |
| commit | 07378b9203f949fb7a475115051edb09f134d8ff (patch) | |
| tree | fe787e4a29d23c1718264fbec7feb58377944ccd /common/utils.h | |
| parent | ac37795c7cca4d297ff860678a4197ee94d80f20 (diff) | |
| download | usbmuxd-07378b9203f949fb7a475115051edb09f134d8ff.tar.gz usbmuxd-07378b9203f949fb7a475115051edb09f134d8ff.tar.bz2 | |
optimize: persist fdlist for duration of main_loop
constant malloc and realloc was wasting lots of time
Diffstat (limited to 'common/utils.h')
| -rw-r--r-- | common/utils.h | 1 |
1 files changed, 1 insertions, 0 deletions
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 { | |||
| 39 | void fdlist_create(struct fdlist *list); | 39 | void fdlist_create(struct fdlist *list); |
| 40 | void fdlist_add(struct fdlist *list, enum fdowner owner, int fd, short events); | 40 | void fdlist_add(struct fdlist *list, enum fdowner owner, int fd, short events); |
| 41 | void fdlist_free(struct fdlist *list); | 41 | void fdlist_free(struct fdlist *list); |
| 42 | void fdlist_reset(struct fdlist *list); | ||
| 42 | 43 | ||
| 43 | struct collection { | 44 | struct collection { |
| 44 | void **list; | 45 | void **list; |
