A trivial example: $len = mb_strlen("wtf"); # call function mb_strlen $len = s("wtf")->len(); # call function s # allocate string object # instantiate string object # call string ctor # set property # call method…
The example I'm talking about is the first non-trivial example in the readme - 34 lines of believable code, not an individual function of the library. The library is used about once every 3.5 lines, which feels less…
Aside from anything else, the function call and object instantiation overhead of this library is insane. The string comparison function provided as an example is 4 times slower than the code it's based upon, and 3 times…
A trivial example: $len = mb_strlen("wtf"); # call function mb_strlen $len = s("wtf")->len(); # call function s # allocate string object # instantiate string object # call string ctor # set property # call method…
The example I'm talking about is the first non-trivial example in the readme - 34 lines of believable code, not an individual function of the library. The library is used about once every 3.5 lines, which feels less…
Aside from anything else, the function call and object instantiation overhead of this library is insane. The string comparison function provided as an example is 4 times slower than the code it's based upon, and 3 times…