[Patches] Patch: pass arrays and hashes by reference in interface parser

Thomas Radke tradke at aei.mpg.de
Mon Feb 5 10:05:09 CST 2007


This patch optimises the interface_parser.pl script to pass perl lists 
and hashes by reference rather than by value.

It turned out that most of the runtime of the parameter parser was spent 
in flattening list/hash arguments during function calls. Using 
references conveniently solves this performance bottleneck; for the 
'PublicThorns' configuration used in the nightly integration tests (with 
a list of some 120 thorns), the overall CST runtime went from 100s down 
to 8s [although the same "mistake" of passing lists/hashes is done in 
the schedule and parameter parser scripts, it's probably not worth the 
effort fixing it there as well].

-- 
Cheers, Thomas.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: interface_parser.pl.patch
Type: text/x-patch
Size: 43462 bytes
Desc: not available
Url : http://www.cactuscode.org/pipermail/patches/attachments/20070205/468f34dc/attachment-0001.bin 


More information about the Patches mailing list