With highlighting AST vs. Shout, Shout is a bit faster:
> On 25 Apr 2015, at 09:35, Marcus Denker <marcus.denker@inria.fr> wrote:
>
> Hi,
>
> I want to get a feeling of how much faster Shout is compared to RBParser. This is a very simplistic
> bench:
>
>
> [Morph methods do: [:method | RBParser parseFaultyMethod: method sourceCode ]] bench.
> "'3.197 per second'"
>
> [Morph methods do: [ :method |
> SHTextStylerST80 new rangesIn: method sourceCode setWorkspace: false.]]
> bench
>
> "'2.797 per second���"
>
> This means that parsing performance alone is actually not bad with RB���
> (it would be interesting to look at edge cases���)
>
> And then of course the next thing to do is the highlighting itself.
[Morph methods do: [:method | SHTextStylerST80 new classOrMetaClass: method methodClass; styledTextFor: method sourceCode asText]] bench.
��"'2.301 per second'"
[Morph methods do: [:method |
SHRBTextStyler new classOrMetaClass: method methodClass; styledTextFor: method sourceCode asText]] bench
��"'1.935 per second'"
�� �� �� �� Marcus