On 10:26 am, screwt...@froup.com wrote: >On Thu, Jul 14, 2011 at 07:05:38PM +1000, Tim Allen wrote: >>- You might also want to create an optional Transport method to wrap >>the >> sendfile(2) and/or splice(2) functions. > >I suggested this not knowing whether Python would ever grow support for >sendfile(), since it seemed like the sort of thing that >performance-oriented async-io frameworks might want to set up with >ctypes or similar. However, I've just discovered that os.sendfile() >will >be in Python 3.3: > > http://docs.python.org/dev/library/os.html#os.sendfile > >Since your PEP has a 3000-series number anyway, os.sendfile() might >potentially be quite useful.
Since this non-trivially complicates the implementation of a transport, I suggest that it be an optional extension proposed separately. Jean-Paul _______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python