tolerant-php-parser/experiments
Tyson Andre f583f4cd2e Optimize getDiagnostics for speed
Add a simple benchmarking script

Extreme optimization, sacrificing code style in some areas.

- This is meant for discussion, since the project is
  in the optimization phase.

This commit reduces the time needed to getDiagnostics
from 0.013 to 0.007 seconds.

Average time to generate diagnostics (before): 0.013...
Average time to generate diagnostics (after):  0.006921
time to parse (Without diagnostics):           0.036374

(E.g. getDiagnostics previously took 36% of the time compared
to generating an AST,
and now it takes 19% of that time.)
2017-12-19 21:55:00 -08:00
..
BenchGetDiagnostics.php Optimize getDiagnostics for speed 2017-12-19 21:55:00 -08:00
CoallesceOperatorAssociativity.php fix codestyle and formatting 2017-02-01 17:26:45 -08:00
ConditionalOperatorAssociativity.php fix codestyle and formatting 2017-02-01 17:26:45 -08:00
IndexingIntoStrings.php add copyright headers 2016-12-18 14:49:28 -08:00
Lexer.php add name resolution [work-in-progress] 2017-02-14 02:48:44 -05:00
PhpTypeOverhead.php fix codestyle and formatting 2017-02-01 17:26:45 -08:00
a.js Merge branch 'master' of https://github.com/Microsoft/tolerant-php-parser into lang-server 2017-05-05 09:53:35 -07:00
a.php Merge branch 'master' of https://github.com/Microsoft/tolerant-php-parser into lang-server 2017-05-05 09:53:35 -07:00
b.php Merge branch 'master' of https://github.com/Microsoft/tolerant-php-parser into lang-server 2017-05-05 09:53:35 -07:00
c.php Merge branch 'master' of https://github.com/Microsoft/tolerant-php-parser into lang-server 2017-05-05 09:53:35 -07:00
php7-types.txt add info on performance 2017-01-09 18:38:05 -08:00