This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author sdaoden
Recipients belopolsky, eric.araujo, ezio.melotti, jcea, lemburg, sdaoden, vstinner
Date 2011-02-25.12:38:44
SpamBayes Score 4.6516112e-07
Marked as misclassified No
Message-id <1298637525.67.0.409758082019.issue11303@psf.upfronthosting.co.za>
In-reply-to
Content
(Not issue related)
Ezio and Alexander: after reading your posts and looking back on my code: you're absolutely right.  Doing resize(31) is pointless: it doesn't save space (mempool serves [8],16,24,32 there; and: dynamic, normalized coded names don't exist that long in real life, too).  And append_char() is inlined but much more expensive than doing (register-loaded) *(target++)=char.  Thus i now do believe my code is a bug and i will rewrite doing *target=cstr(resize(len(input)*2)) ... truncate() instead!
Thanks.
History
Date User Action Args
2011-02-25 12:38:45sdaodensetrecipients: + sdaoden, lemburg, jcea, belopolsky, vstinner, ezio.melotti, eric.araujo
2011-02-25 12:38:45sdaodensetmessageid: <1298637525.67.0.409758082019.issue11303@psf.upfronthosting.co.za>
2011-02-25 12:38:45sdaodenlinkissue11303 messages
2011-02-25 12:38:44sdaodencreate