os-ken/ryu/contrib/tinyrpc
Mark Lentczner b636219007 Reduce logging overhead by cleaning up logging calls
Deferred formatting to the logging system:
---------------------------------------------
In general
    logger.debug('xxx %s yyy %d zzz' % (a, b, c))
can be written as:
    logger.debug('xxx %s yyy %d %zzz', a, b, c)
This is faster, as Python logging doesn't bother doing the format
operation (which is slow) if the log message won't be logged.

We measured that a significant amount of CPU time in the BGP service
was attributable to these formatting operations.

Removed unneeded calls to str() and repr()
------------------------------------------
since formatting operations %s and %r will make these calls when
(and if) the formatting is performed.

Signed-off-by: Jerry Cen <zhiweic@google.com>
Acked-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2015-03-16 21:11:10 +09:00
..
dispatch contrib: import tinyrpc library 2014-06-15 21:33:07 +09:00
protocols contrib: import tinyrpc library 2014-06-15 21:33:07 +09:00
server contrib: import tinyrpc library 2014-06-15 21:33:07 +09:00
transports Reduce logging overhead by cleaning up logging calls 2015-03-16 21:11:10 +09:00
__init__.py contrib: import tinyrpc library 2014-06-15 21:33:07 +09:00
client.py contrib: import tinyrpc library 2014-06-15 21:33:07 +09:00
exc.py contrib: import tinyrpc library 2014-06-15 21:33:07 +09:00