Skip to content
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

Issue #77: Performance Fixes #81

Merged
merged 6 commits into from
Feb 20, 2019
Merged

Issue #77: Performance Fixes #81

merged 6 commits into from
Feb 20, 2019

Conversation

SavageTiger
Copy link
Contributor

Hi Josh,

After reading about all the performance troubles on the Drupal forums and in the issue #77 I thought i'd try to fix it.

Its obvious that introducing multibyte support was the big performance hit, however, it is not needed most of the time.

I realized it is pretty easy to determine if this is the case by comparing the result of strlen($text) to mb_strlen($text) and enabled / disabled mb_ functions accordingly. And this fixed the issue.

screenshot from 2019-02-13 23-07-46

I also did some small performance fixes by doing some more strict checking, and making the internal php call graph smaller. Used a profiler to fix these issues (xhprof). However the problem was that by decreasing the call-stack I think my biggest performance improvements came from the profiler having less of a hard time keeping up

@jschroed91
Copy link
Member

This is great @SavageTiger! I will take a look at this tonight or tomorrow and if all looks good will get this merged in and a new release tagged

Copy link
Member

@jschroed91 jschroed91 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Nice work here @SavageTiger

@jschroed91 jschroed91 merged commit 2ba271b into caxy:master Feb 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants