os-ken/ryu/contrib
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
..
_eventlet Import eventlet.websocket from master branch 2014-05-16 05:03:11 +09:00
ncclient Reduce logging overhead by cleaning up logging calls 2015-03-16 21:11:10 +09:00
ovs ovs.poller: workaround a bug in eventlet 2013-04-28 08:14:29 +09:00
tinyrpc Reduce logging overhead by cleaning up logging calls 2015-03-16 21:11:10 +09:00
__init__.py contrib: fix a comment typo 2013-02-02 11:21:23 +09:00