Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
hearth
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
3 ms
·
1.
▲
by
hearth
14y ago
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 prope
2.
▲
by
hearth
14y ago
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 dense than most jQuery c
3.
▲
by
hearth
14y ago
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 slower than a comp