Feb. 6, 2012
9:59 p.m.
On Mon, 6 Feb 2012 22:57:46 +0100 Victor Stinner <victor.stinner@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.