Age | Commit message (Collapse) | Author | Files | Lines |
|
It will be replaced by tdgram_context and tstream_context.
metze
|
|
metze
|
|
metze
|
|
metze
|
|
metze
|
|
The desire is to do as less syscalls during the
tdgram_sendto_send/recv() and tdgram_recvfrom_send/recv()
operations.
1. we first try the sendto()/recvfrom() syscall and
only use a fd event if we got EAGAIN.
2. we cache the fd event and only change it's flags
if really needed.
For the highload case we do almost no epoll_ctl() and epoll_wait()/select()
syscalls anymore. This speeds up the LDAP-BENCH-CLDAP test
by more than 20%. (With a modified version of this test
which let the server skip any ldb calls and just return success
I'm getting about 8000 requests per second, while I'm getting
just about 6000 requests per second without optimization)
metze
|
|
The idea is to have a tdgram and a tstream abstraction
which only provide tevent_req based io functions.
metze
|
|
metze
|
|
metze
|
|
It seems that 'sun' is somewhere defined and we can
use it as name for variables or struct/union members.
metze
|
|
metze
|