]> granicus.if.org Git - libevent/commit
Minor optimizations on bufferevent_trigger options
authorNick Mathewson <nickm@torproject.org>
Tue, 24 Dec 2013 16:30:06 +0000 (11:30 -0500)
committerNick Mathewson <nickm@torproject.org>
Tue, 24 Dec 2013 16:30:06 +0000 (11:30 -0500)
commita3172a415b709d1df76b27ee86c738e4d8b6f87b
tree9573773ae090be17b7db4dab0bc71fb25bd8cadd
parent4dd3abd41fe951b4c236c8e9920f17f3af7f4a6d
Minor optimizations on bufferevent_trigger options

By making BEV_TRIG_DEFER_CALLBACKS equal to BEV_OPT_DEFER_CALLBACKS,
and BEV_TRIG_IGNORE_WATERMARKS disjoint from BEV_OPT_*, we can save a
few operations in bufferevent_run_*, which is critical-path.
bufferevent.c
include/event2/bufferevent.h