[Python-3000] Droping find/rfind?

Nick Coghlan ncoghlan at gmail.com
Sat Aug 26 09:27:46 CEST 2006


Ivan Krstić wrote:
> Jean-Paul Calderone wrote:
>> http://twistedmatrix.com/trac/browser/sandbox/itamar/cppreactor/fusion
> 
> This is the same Itamar who, in the talk I linked a few days ago
> (http://ln-s.net/D+u) extolled buffer as a very real performance
> improvement in fast python networking, and asked for broader and more
> complete support for buffers, rather than their removal.
> 
> A bunch of people, myself included, want to use Python as a persistent
> network server. Proper support for reading into already-allocated
> memory, and non-copying strings are pretty indispensable for serious
> production use.

A mutable bytes type with deque-like performance characteristics (i.e O(1) 
insert/pop at index 0 as well as at the end), as well as the appropriate 
mutating methods (like read_into()) should go a long way to meeting those needs.

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia
---------------------------------------------------------------
             http://www.boredomandlaziness.org


More information about the Python-3000 mailing list