Skip to content

Consume expression to indicate how many characters to look ahead #120

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 31, 2017

Conversation

FMCorz
Copy link

@FMCorz FMCorz commented May 31, 2017

Where possible consumeExpression should be provided with the maximum number of characters the expression could be made of. This allows for more efficiently peeking for a few characters rather than the entire remaining character map.

This issue was discovered at Moodle when compiling with FontAwesome which uses unicode more heavily. https://tracker.moodle.org/browse/MDL-58646

Where possible consumeExpression should be provided with the
maximum number of characters the expression could be made of.
This allows for more efficiently peeking for a few characters
rather than the entire remaining character map.
@FMCorz
Copy link
Author

FMCorz commented May 31, 2017

Travis may fail, but here is my local PHP Unit output:

PHP 7.0.15-1ubuntu4 (cli) (built: Feb 28 2017 21:33:59) ( NTS )

Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
    with Zend OPcache v7.0.15-1ubuntu4, Copyright (c) 1999-2017, by Zend Technologies
PHPUnit 5.4.6 by Sebastian Bergmann and contributors.

...............................................................  63 / 108 ( 58%)
.............................................                   108 / 108 (100%)

Time: 102 ms, Memory: 6,00MB

OK (108 tests, 212 assertions)

@sabberworm
Copy link
Collaborator

Good idea, thanks!

(I’ll fix travis later)

@sabberworm sabberworm merged commit 3079ac5 into MyIntervals:master May 31, 2017
@FMCorz
Copy link
Author

FMCorz commented May 31, 2017

Fastest merge ever! W00t!

@durzo
Copy link

durzo commented May 31, 2017

FMCorz you beautiful man!

danpoltawski added a commit to danpoltawski/moodle that referenced this pull request Jun 2, 2017
This version includes a fix[1] contributed by Frédéric Massart investigating
our compilation time issues, which significantly improves the speed of
processing font awesome.

Thanks, Fred!

[1] MyIntervals/PHP-CSS-Parser#120
danpoltawski added a commit to danpoltawski/moodle that referenced this pull request Jun 2, 2017
This version includes a fix[1] contributed by Frédéric Massart investigating
our compilation time issues, which significantly improves the speed of
processing font awesome.

Thanks, Fred!

[1] MyIntervals/PHP-CSS-Parser#120
danpoltawski added a commit to danpoltawski/moodle that referenced this pull request Jun 2, 2017
This version includes a fix[1] contributed by Frédéric Massart investigating
our compilation time issues, which significantly improves the speed of
processing font awesome.

Thanks, Fred!

[1] MyIntervals/PHP-CSS-Parser#120
@sabberworm
Copy link
Collaborator

Released with 8.2.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants