Skip to content

Option to disable the highlighter #140

@exussum12

Description

@exussum12

Running on large files is quite slow, about 50% of the time is taken highlighting the code.

Total of Magic Numbers: 8
Time: 00:01.485, Memory: 94.01 MB

And commenting https://github.com/povils/phpmnd/blob/master/src/Printer/Console.php#L38-L41

takes it to

Total of Magic Numbers: 8
Time: 00:00.755, Memory: 56.00 MB

Anyone got an opinion on the formatting ? It highlights php code in general, if anything I think we should highlight the number.

Either way an option to save 50% processing would be quite a nice one to provide

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions