[Rake-devel] rake speedup for several thousand tasks

Jim Weirich jim at weirichhouse.org
Sun Mar 28 14:31:33 EST 2004

Niklas von Öhsen wrote:
> I just got acquainted to rake and want to use it to automate
> some scientific calculations (I think, its great!). This involves 
> definition of several thousand tasks. I found that the usual rake "file" 
> and "task" syntax is quite slow for this. Thus I added new methods for a 
> faster task definition. The original time needed for the definition of 
> about 7000 file tasks with one additional dependence was 150 sec. Using 
> the code below this goes down to 1.2 sec. A speedup of more than 10000% :-)
> It sacrifices flexibility and beauty of syntax to raw speed, but if that 
> is what you need ...

Sorry it took so long to respond to this.  Your performance numbers are 
interesting and certainly is worth further investigation.  I've not 
tried more than a rew hundred dependencies at a time.  Thanks for the 

-- Jim Weirich    jim at weirichhouse.org     http://onestepback.org
"Beware of bugs in the above code; I have only proved it correct,
not tried it." -- Donald Knuth (in a memo to Peter van Emde Boas)

More information about the Rake-devel mailing list