mirror of
https://salsa.debian.org/ha-team/libqb
synced 2025-12-31 10:44:13 +00:00
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> |
||
|---|---|---|
| .. | ||
| hdb.c | ||
| ipc_int.h | ||
| ipc_posix_mq.c | ||
| ipc_shm.c | ||
| ipc_sysv_mq.c | ||
| ipc_us.c | ||
| ipcc.c | ||
| ipcs.c | ||
| libqb.pc.in | ||
| loop_int.h | ||
| loop_job.c | ||
| loop_poll.c | ||
| loop_timer.c | ||
| loop.c | ||
| Makefile.am | ||
| ringbuffer_helper.c | ||
| ringbuffer_int.h | ||
| ringbuffer.c | ||
| util_int.h | ||
| util.c | ||