On 6/1/05, Mats Persson mats@imediatec.co.uk wrote:
If you have TextMate 1.1b11 installed and is coding with PHP, then please visit [ http://www.imediatec.co.uk/tm/phpcc/ ] and help out testing a new PHP Code Completion solution for TM.
nice! this is really cool, Mats. Works great too. I love code completion.
One suggestion : since the phpcc.lookup.php file has 3,000+ lines of array declarations, try regenerating it all as one big array instead. I think you will notice a speed increase. What I mean is, instead of :
$_LOOKUP = array( ); $_LOOKUP["abs"] = array( "methodname" => "abs", ... ); $_LOOKUP["acos"] = array( "methodname" => "acos" ... );
make it :
$_LOOKUP = array( 'abs' => array( 'methodname' => 'abs' ... ), 'acos' => array( ... ), ... );
because otherwise, the PHP parser would be looking up '_LOOKUP' in the global symbol table 3,000 times instead of once :(
I am on a dual G4 here anyway so I only notice a slight lag when it first hits the lookup script ... still very usable.
_
well, when a few other people have tested it, I think you should definitely add this to the Bundles repos
K