os-ken/ryu/contrib/ncclient
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
..
operations Reduce logging overhead by cleaning up logging calls 2015-03-16 21:11:10 +09:00
transport Reduce logging overhead by cleaning up logging calls 2015-03-16 21:11:10 +09:00
__init__.py contrib: import ncclient library (NETCONF clients) 2013-03-05 07:37:44 +09:00
capabilities.py contrib: import ncclient library (NETCONF clients) 2013-03-05 07:37:44 +09:00
debug.py contrib: import ncclient library (NETCONF clients) 2013-03-05 07:37:44 +09:00
manager.py contrib ncclient: missing comma 2013-03-05 07:39:55 +09:00
xml_.py contrib: import ncclient library (NETCONF clients) 2013-03-05 07:37:44 +09:00