The Sonic Center

Welcome Center => Beef => Bugs => Topic started by: GerbilSoft on December 05, 2007, 08:59:24 am

Title: Make TSC directives a global variable.
Post by: GerbilSoft on December 05, 2007, 08:59:24 am
Currently, all the functions using the TSC directives array pass it by value and then return a new copy of said array. This wastes memory and is slow. Instead, the directives array should be a global variable. (Passing by reference is also a good idea, but since this array is used by everything, it should be global instead.)

More optimization tips are available at http://atomized.org/2005/04/php-performance-best-practices/ and http://www.php.lt/benchmark/phpbench.php .