libqb/lib
Steven Dake 4b58dda9fa get_more_jobs: use qb_list_splice instead of iterating list and readding
oprofile picked up get_more_jobs as a heavy abuser of cpu cycles when running
with cpgbench.  Typical cpgbench runs this function 37 million times.  This
small optimization improves performance of corosync as well as reduces
cpu utilization used by this function.

Might look at tracking length of wait_head and job_head to avoid use of
qb_list_length as well (which also iterates).

Signed-off-by: Steven Dake <sdake@redhat.com>
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2010-10-15 07:36:35 +11:00
..
hdb.c IPC: get the poll independent functions working. 2010-10-12 21:53:52 +11:00
ipc_int.h IPC: move destroy() into ipcs.c (all were duplicated) 2010-10-13 21:23:07 +11:00
ipc_posix_mq.c IPC: add q_len_get() to posix_mq & sysv_mq 2010-10-13 21:37:59 +11:00
ipc_shm.c IPC: add q_len_get() to posix_mq & sysv_mq 2010-10-13 21:37:59 +11:00
ipc_sysv_mq.c IPC: add q_len_get() to posix_mq & sysv_mq 2010-10-13 21:37:59 +11:00
ipc_us.c IPC: move destroy() into ipcs.c (all were duplicated) 2010-10-13 21:23:07 +11:00
ipcc.c IPC: remove flow control API and move functionality into send() 2010-10-14 09:16:00 +11:00
ipcs.c IPC: add q_len_get() to posix_mq & sysv_mq 2010-10-13 21:37:59 +11:00
libqb.pc.in Fix the installation of libqb.pc 2010-05-31 11:21:03 +10:00
loop_int.h Add a priority based main loop. 2010-10-12 21:53:52 +11:00
loop_job.c get_more_jobs: use qb_list_splice instead of iterating list and readding 2010-10-15 07:36:35 +11:00
loop_poll.c fix some valgrind warnings 2010-10-12 21:53:53 +11:00
loop_timer.c Add a priority based main loop. 2010-10-12 21:53:52 +11:00
loop.c Add a priority based main loop. 2010-10-12 21:53:52 +11:00
Makefile.am Remove timer.c (rather use mainloop) 2010-10-12 21:53:52 +11:00
ringbuffer_helper.c IPC: make events always use socket notification 2010-10-06 20:39:23 +11:00
ringbuffer_int.h RB: add support for shared user data. 2010-10-12 21:53:53 +11:00
ringbuffer.c RB: return EAGAIN not ENOMEM if no space on the rb. 2010-10-12 21:53:53 +11:00
util_int.h Format all files with Lindent 2010-06-10 21:42:08 +10:00
util.c UTIL: add qb_timespec_add_ms() 2010-10-06 20:39:23 +11:00