This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients pitrou, serhiy.storchaka, vstinner
Date 2013-09-29.22:56:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1380495397.16.0.408848246366.issue19087@psf.upfronthosting.co.za>
In-reply-to
Content
> One of most used cases for bytearrays is accumulating.
> And the patch slow down this case.

I see no difference here. You are seeing a 10% slowdown, which is possibly a measurement glitch. The bottom line is that the performance remains approximately the same.

> It offer better performances for "free" only for suboptimal code
> which currently have O(N) instead of O(1).

The problem is the "suboptimal code" is also the natural way to write such code. If you know a simple and idiomatic way to write an optimal bytes FIFO, then please share it with us. Otherwise, I will happily ignore your line of argument here.
History
Date User Action Args
2013-09-29 22:56:37pitrousetrecipients: + pitrou, vstinner, serhiy.storchaka
2013-09-29 22:56:37pitrousetmessageid: <1380495397.16.0.408848246366.issue19087@psf.upfronthosting.co.za>
2013-09-29 22:56:37pitroulinkissue19087 messages
2013-09-29 22:56:37pitroucreate