mirror of
http://git.haproxy.org/git/haproxy.git
synced 2026-02-15 12:22:31 +02:00
[MAJOR] migrated task, tree64 and session to pool2
task and tree64 are already very close in size and are merged together. Overall performance gained slightly by this simple change.
This commit is contained in:
@@ -87,6 +87,7 @@
|
||||
#include <proto/proxy.h>
|
||||
#include <proto/queue.h>
|
||||
#include <proto/server.h>
|
||||
#include <proto/session.h>
|
||||
#include <proto/stream_sock.h>
|
||||
#include <proto/task.h>
|
||||
|
||||
@@ -292,6 +293,9 @@ void dump(int sig)
|
||||
);
|
||||
}
|
||||
#endif
|
||||
/* dump memory usage then free everything possible */
|
||||
dump_pools();
|
||||
pool_gc2();
|
||||
}
|
||||
|
||||
#ifdef DEBUG_MEMORY
|
||||
@@ -370,6 +374,8 @@ void init(int argc, char **argv)
|
||||
localtime((time_t *)&now.tv_sec);
|
||||
start_date = now;
|
||||
|
||||
init_task();
|
||||
init_session();
|
||||
init_proto_http();
|
||||
|
||||
cfg_polling_mechanism = POLL_USE_SELECT; /* select() is always available */
|
||||
@@ -654,10 +660,10 @@ void deinit(void)
|
||||
|
||||
if (fdtab) free(fdtab);
|
||||
|
||||
pool_destroy(pool_session);
|
||||
pool_destroy2(pool2_session);
|
||||
pool_destroy(pool_buffer);
|
||||
pool_destroy(pool_requri);
|
||||
pool_destroy(pool_task);
|
||||
pool_destroy2(pool2_task);
|
||||
pool_destroy(pool_capture);
|
||||
pool_destroy(pool_appsess);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user