>For example, even in a process that is mostly network- and IO-bound, this transformation makes for a 3% speedup:
def sendstream(self, source):
+ write = self.fout.write
for chunk in source.gen:
- self.fout.write(chunk)
+ write(chunk)
self.fout.flush()
(_\\)
соус: http://bos.github.com/reaktor-dev-day-20.....lides.html