Message1578

Author pedronis
Recipients
Date 2007-04-28.11:55:12
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
that code should be written as:

xml = ''.join(lines)

this is  quality implementation issue. CPython uses ref counting based optimisations to avoid the quadratic perfomance,
is nevertheless the case that the ''.join idiom is the right way to concatenate many strings that works across Python implementations.

Given that Jython doesn't uses ref counting is unlikely that somethigng reasonably simple can be done to change this.

Java simple switching to use StringBuilder is possible because types are known at compile time.
History
Date User Action Args
2008-02-20 17:17:48adminlinkissue1709162 messages
2008-02-20 17:17:48admincreate