[Twisted-Python] Sending a long string/buffer without copying it

Phil Mayers p.mayers at imperial.ac.uk
Thu Sep 28 04:55:02 EDT 2006


Brian Granger wrote:
> 
> Even if I do that, it appears that Twisted is making copies elsewhere
> - like in FileDescriptor.doWrite.  So, how can I send something
> without making a copy?  I don't mind making copies of slices, just not
> the whole thing.

You'd need to patch the reactor.

Isn't there some talk about a python buffer thingie for this kind of need?




More information about the Twisted-Python mailing list