[Python-Dev] 3.3 str timings
Serhiy Storchaka
storchaka at gmail.com
Tue Aug 21 22:36:47 CEST 2012
On 19.08.12 00:17, Terry Reedy wrote:
> This is one of the 3.3 improvements. But since the results are equal:
> ('a'*1000).encode() == ('a'*1000).encode(encoding='utf-8')
> and 3.3 should know that for an all-ascii string, I do not see why
> adding the parameter should double the the time. Another issue or known
> and un-fixable?
This is a cost of argument packing/unpacking.
More information about the Python-Dev
mailing list