diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2014-09-24 00:19:00 +0200 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2014-09-24 00:20:20 +0200 |
commit | bdb3b9b9593260b5224a4de09fdb46d8748eb2ab (patch) | |
tree | f75d24d08a27f746db8bdce92e55edb9d1f55ff8 | |
parent | 9df79e36371215811bd752d4cdf5fc8bed578549 (diff) | |
download | ponymap-bdb3b9b9593260b5224a4de09fdb46d8748eb2ab.tar.gz ponymap-bdb3b9b9593260b5224a4de09fdb46d8748eb2ab.tar.xz ponymap-bdb3b9b9593260b5224a4de09fdb46d8748eb2ab.zip |
Identified a hot-spot
-rw-r--r-- | ponymap.c | 2 | ||||
-rw-r--r-- | utils.c | 1 |
2 files changed, 1 insertions, 2 deletions
@@ -2038,8 +2038,6 @@ main (int argc, char *argv[]) merge_ip_ranges (&ctx); // Initate the scan: generate as many units as possible - // FIXME: this appears to be quite slow: either make it run faster, - // or limit the number of units spawned at a time generator_init (&ctx); while (generator_step (&ctx)) ; @@ -1161,6 +1161,7 @@ poller_set (struct poller *self, struct poller_fd *fd) modifying ? EPOLL_CTL_MOD : EPOLL_CTL_ADD, fd->fd, &event) != -1); } +// FIXME: this is by far the slowest function in the whole program static void poller_remove_from_dispatch (struct poller *self, const struct poller_fd *fd) { |