remove unnecessary copies when only one handler matches. This was taking up ~ 15% of CPU on moderate load.

This commit is contained in:
Vijay Pandurangan
2011-11-19 15:59:38 -08:00
parent 6f3cc77bb5
commit 48af3d3322
2 changed files with 23 additions and 18 deletions

View File

@@ -246,7 +246,7 @@ class BaseXMPP(XMLStream):
spec = "(RFC-%s) " % self.plugin[plugin].rfc
desc = (spec, self.plugin[plugin].description)
log.debug("Loaded Plugin %s%s" , desc)
log.debug("Loaded Plugin %s" , desc)
except:
log.exception("Unable to load plugin: %s", plugin)