mirror of
https://github.com/samba-team/samba.git
synced 2024-12-27 03:21:53 +03:00
3b16bfe483
We just need one tevent_threaded_context per unique combintation of tevent event contexts and pthreadpool_tevent pools, not multiple copies for identical combinations of a tevent contexts and a pthreadpool_tevent pools. With this commit we register tevent contexts in a list in the pthreadpool_tevent structure and will only have one tevent_threaded_context object per tevent context per pool. With many pthreadpool_tevent_job_send reqs this pays off, I've seen a small decrease in cpu-ticks with valgrind callgrind and a modified local.messaging.ping-speed torture test. The test modification ensured messages we never directly send, but always submitted via pthreadpool_tevent_job_send. Pair-Programmed-With: Jeremy Allison <jra@samba.org> Signed-off-by: Ralph Boehme <slow@samba.org> Signed-off-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Ralph Böhme <slow@samba.org> Autobuild-Date(master): Fri Nov 17 02:35:52 CET 2017 on sn-devel-144 |
||
---|---|---|
.. | ||
Makefile | ||
pthreadpool_pipe.c | ||
pthreadpool_pipe.h | ||
pthreadpool_sync.c | ||
pthreadpool_tevent.c | ||
pthreadpool_tevent.h | ||
pthreadpool.c | ||
pthreadpool.h | ||
tests.c | ||
wscript_build |