[Developers] [Patches] Patch: pass arrays and hashes by reference in interface parser
Tom Goodale
goodale at cct.lsu.edu
Mon Feb 5 10:16:54 CST 2007
Looks good to me. The flattening is left over from the perl 4 days 8-(
On Mon, 5 Feb 2007, Thomas Radke wrote:
> 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].
>
>
More information about the Developers
mailing list