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
ConditionalOperatorAssociativity.php
IndexingIntoStrings.php
Lexer.php
PhpTypeOverhead.php
a.js
a.php
b.php
c.php
php7-types.txt