On Mon, 6 Feb 2012 22:57:46 +0100 Victor Stinner <victor.stinner at haypocalc.com> wrote: > > >> - id->object = PyUnicode_DecodeUTF8Stateful(id->string, > >> - strlen(id->string), > >> - NULL, NULL); > >> + id->object = unicode_fromascii((unsigned char*)id->string, > >> + strlen(id->string)); > > This is just an optimization. Is the optimization even worthwhile? This code is typically called once for every static string. Regards Antoine.
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