The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

Optimize the performance of Geniustrader

This module can be used to improve the performance of any program using the GeniusTrader modules (e.g. the scripts graphic.pl, backtest.pl, ...).

To use the module you have to make sure that you have write permission for the directory the variable $newpath points to.

Next you have to insert the following two lines above any other use- or require-statement that includes a GT-module:

use OptimizeGT;

use lib $OptimizeGT::newpath;

Now you can use the script the normal way. When you first call the script this module will need a little bit of time to do some optimization stuff but therefore the next run will be much faster.

If you normally don't change your version of GT but simply use it, then you can set the variable $PERIODIC_UPDATE to a higher value. If this variable is non-zero the script is looking only every $PERIODIC_UPDATE seconds for an update of the GT-modules. In this case it might be that changes on a module are not detected and a old version is use instead!

Warning

This module is using regular expressions to modify the GT modules source code on disk. This might lead to a problem if the one of the function names that should be replaced is osed in a different context.

If your program produces an error you don't understand please you should try to comment out the two lines mentioned above.