Message53080
| Author |
nobody |
| Recipients |
| Date |
2001年01月04日.18:33:28 |
| SpamBayes Score |
| Marked as misclassified |
| Message-id |
| In-reply-to |
| Content |
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 |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2007年08月23日 16:00:01 | admin | link | issue403100 messages |
| 2007年08月23日 16:00:01 | admin | create |
|