3 ms·
It kind of reminds me of this blog post from a while back about Apple's CFArray implementation and how it switches data structure implementations at about 300,0
by jarin 16y ago
It kind of reminds me of this blog post from a while back about Apple's CFArray implementation and how it switches data structure implementations at about 300,000 elements: http://ridiculousfish.com/blog/archives/2005/12/23/array/ http://ridiculousfish.com/blog/archives/2005/12/23/array/
Just a reminder that the simpler things seem, the more complex they can often get under the surface.
- seles 16y agoThe regex is not complex, just the php implementation is. I feel like any regex expression should give an error or at least a warning if is going to return a potentially incorrect answer.
- bobfunk 16y agoWould absolutely expect an exception if my regex engine decided it couldn't handle an expression! Just giving back a wrong result unless you tweak the php.ini file seems insane. Stuff like this is really what makes PHP deserve its bad rep...