[Tutor] code colorizer

ingo seedseven@home.nl
Mon, 25 Mar 2002 21:40:17 +0100


On 2002/03/25 at 09:42 Kirby Urner wrote:

>   return reduce(lambda x,y:x+y,s)
>in ad_tag() is a bottleneck, which is better replaced with:
>
>   return ''.join(s)

Changed it. Makes quite a difference.

>If you want to test the same file (nothing special to look
>at, just long ~120K of mostly cylinders), I've put it at:

Just tried a 60 MB mesh, not fun :( 
I stopped it after 15 min and the use of ~1GB memory.

Ingo