-- snip --

>> I was surprised to see you using string += to build up "result" in write(). 
>> One of the fundamental rules of Python string operations is to not do this.
>>  
>> See http://www.skymind.com/~ocrow/python_string/ for an analysis and 
>> options. Using array concatenation (which would enable you to have access to 
>> the last character in result, for stripping if you need to) gives a factor 
>> of 20 improvement. That should make compiling a lot more efficient. 
>>
>> You should look elsewhere in your code for += constructs and eliminate them.
>>   
> Wow - I didn't reflect on that but it immediately dawns on me. Good
> point! And good reference, thanks.

That is a good point. However I am not sure how relevant this is in 
current python versions. The article is from 2004. Have anybody done 
tests with current versions of python. In my opinion they have greatly 
improved the general string performance in recent versions.

Sebastian



> 
> =Thomas
> 
> 
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to