[Twisted-Python] Why is Int23StringReceiver so slow?

Brian Granger bgranger at scu.edu
Wed Aug 24 13:22:37 MDT 2005


On Aug 24, 2005, at 12:14 PM, Itamar Shtull-Trauring wrote:

> On Wed, 2005-08-24 at 11:58 -0700, Brian Granger wrote:
>
>
>> Is the Int32StringReceiver really that slow?  Why?  What am I
>> missing?  Are there hidden assumptions that I am missing?  Can it be
>> made faster?
>>
>
> There were some optimizations made to LineReceiver that weren't  
> made to
> Int32StringReceiver, so that may be it.
>
>

OK, thanks.  I will probably just use a line based approach then.   
Unless I find time to optimize Int32StringReceiver myself....
Until Int32StringReceiver gets optimized, it might make sense to  
document the fact that it could be very slow compared with LineReceiver.

Brian

> _______________________________________________
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
>





More information about the Twisted-Python mailing list