shard-ameba/spec/ameba
V. Elenhaupt adfe654733
Performance improvements (#15)
* Performance improvements

Two main changes:

1. Cache parsed AST in a Source. So Parser will parse content only once.
2. Use one unified visitor with multiple callbacks instead of multiple
visitors to traverse AST.

This improves performance significantly, for example running it on
Crystal repository takes ~1 second, which 6 times faster than before.

* Change readme example
2017-11-06 20:54:58 +02:00
..
ast Performance improvements (#15) 2017-11-06 20:54:58 +02:00
formatter Refactor formatters 2017-11-06 10:41:03 +02:00
rules Line lenght: 80 symbols 2017-11-06 08:54:59 +02:00
rule_spec.cr Custom matcher 2017-11-01 22:05:41 +02:00
source_spec.cr Large numbers rule + tokenizer (#10) 2017-11-04 16:43:40 +02:00
tokenizer_spec.cr Refactor tokenizer 2017-11-04 17:38:04 +02:00