From tradke at aei.mpg.de Mon Feb 5 10:05:09 2007 From: tradke at aei.mpg.de (Thomas Radke) Date: Mon, 05 Feb 2007 17:05:09 +0100 Subject: [Patches] Patch: pass arrays and hashes by reference in interface parser Message-ID: <45C755B5.4010901@aei.mpg.de> 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