Skip to content

Add ability to disable mb_* related string functions #40

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 2 commits into from Jun 28, 2012
Merged

Add ability to disable mb_* related string functions #40

merged 2 commits into from Jun 28, 2012

Conversation

yellowandy
Copy link

The mb_* functions can be very expensive, for a large document it was taking me over a minute to parse. By disabling these functions it took around 3 seconds and since I know the source of the CSS I'm certain mb_* functions aren't needed.

@sabberworm
Copy link
Collaborator

Great idea. Could you get rid of the $this->charset param to the method calls?

@yellowandy
Copy link
Author

Yikes, I had actually removed them earlier but choose another fork for the pull request, sorry about that.

sabberworm added a commit that referenced this pull request Jun 28, 2012
Add option to use non-multibyte-aware string functions

Doing so results in a much better execution time but only if the parsed CSS is guaranteed not to include multibyte characters.
@sabberworm sabberworm merged commit 257293f into MyIntervals:master Jun 28, 2012
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.

2 participants