A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2012-May/119750.html below:

[Python-Dev] Optimize Unicode strings in Python 3.3

[Python-Dev] Optimize Unicode strings in Python 3.3 [Python-Dev] Optimize Unicode strings in Python 3.3Serhiy Storchaka storchaka at gmail.com
Wed May 30 11:32:53 CEST 2012
On 30.05.12 01:44, Victor Stinner wrote:
> The "two steps" method is not promising: parsing the format string
> twice is slower than other methods.

The "1.5 steps" method is more promising -- first parse the format 
string in an efficient internal representation, and then allocate the 
output string and then write characters (or enlarge and widen the 
buffer, but with more information in any case). The internal 
representation can be cached (as for struct module) that for a repeated 
formatting will reduce the cost of parsing to zero.


More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4