Skip to content

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

2 participants