floodlight/indigo — pull request #111 by rlane (2014-04-02 18:28:07+00:00)
Title: speed up logging

Reviewer: @harshsin

The log messages in cxn_instance.c automatically get the connection
IP/port/aux-id prepended. Even when the log isn't displayed due to the
loglevel, the cxn_ip_string function was still being called. The conditional
that checks whether the log level is enabled is inside aim_log_common, and the
result of cxn_ip_string is passed as a parameter to that varargs function.

Fixed by expanding the log format and args into the macros instead of hiding
them in cxn_ip_string.

This gets us 30% more echo requests/s in my microbenchmark.