Message53080
I like the idea, but the implementation needs some reworking:
the common case is 1-1 mapping so this should be as fast
as possible; extra size checks slow things down too much.
You can take a different approach, though:
leave things as they are and only add a special case for the 1-n
which does resizing depending on how many extra chars are inserted.
Then as final step, if resizing occurred, call _PyUnicode_Resize()
to cut down the allocate buffer to its true size.
-- Marc-Andre |
|
Date |
User |
Action |
Args |
2007-08-23 16:00:01 | admin | link | issue403100 messages |
2007-08-23 16:00:01 | admin | create | |
|