chicken-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-hackers] [PATCH] Fix performance bottleneck in compiling la


From: Felix
Subject: Re: [Chicken-hackers] [PATCH] Fix performance bottleneck in compiling large files, add profiling option
Date: Mon, 23 Jan 2012 05:50:55 +0100 (CET)

From: Peter Bex <address@hidden>
Subject: [Chicken-hackers] [PATCH] Fix performance bottleneck in compiling 
large files, add profiling option
Date: Sat, 21 Jan 2012 20:38:39 +0100

> 
> Instead of using sprintf and allocating a new string and copying over
> every time, I've changed real-name to use build up a list and use
> string-intersperse to join them together at the end (see patch 0002 or
> changeset 27dbaf0440617fa92a33c592aba9d52b72a95117 in my branch).
> This causes compilation time to grow a lot less hard (see the red line
> in comparison.png) and compilation time to be more than halved when
> compiling the 1000-form file, but real-name is still dominating the
> procedure-calls which makes sense since there are places where the
> comment is several standard 80x25 screenfulls.  Perhaps these comments
> should be cut off at a certain length?

Well done, Peter. Patch applied and pushed.

(There actually is a debug-option for showing time spent in each pass:
"-debug b" - sorry, I totally forgot about this)


cheers,
felix



reply via email to

[Prev in Thread] Current Thread [Next in Thread]