[gambit-list] Performance tuning

Bradley Lucier lucier at math.purdue.edu
Tue Sep 22 14:25:17 EDT 2009


On Sep 22, 2009, at 4:48 AM, Andrew Whaley wrote:

> Hi Marc,
>
>
> Is there a document anywhere that describes how to performance tune  
> Gambit ? I've been writing some genetic programming code which  
> Gambit has been great for for small examples but now I'm running  
> into severe performance problems.
>
>
> I'm tryin to load a large CSV file of approximately 40MB into a  
> list of records but I gave up on it when it still hadn't finished  
> after 30 minutes. When its loaded, I'll need to iterate over the  
> full set around 500k times which I'm expecting taking a while but  
> hopefully no more than a couple of days. I'm using the interpreter  
> at the moment so can try compiling but is there anything else that  
> I can do ?
>

1.  Compile.  Profile.  Use better algorithms.

2.  Use declarations, typically

(declare (standard-bindings)(extended-binding)(block)(not safe))

(if these are applicable) and flonum and fixnum-specific operations  
(also if applicable)

Brad



More information about the Gambit-list mailing list