>>39
No shit it was the same person. Fourchon is so slow I didn't think it took my first post. Perhaps it needs an EXPERT PROGRAMMER to rewrite it.
>It's not noticeably slow if you don't abuse it. Of course, you can't expect for ($i = 100000; --$i; lambda(...)); to work decently.
Why would you not expect a loop creating lambdas to work decently? I've done that in plenty of other languages. What's the excuse there?
>It's not noticeably slow if you don't abuse it. Of course, you can't expect for ($i = 100000; --$i; lambda(...)); to work decently.
create_function() just blindly calls eval on code passed into it. Oops!
Also, let's not forget the fact that Zend ignores optimizations on eval()ed code.
All of this adds up to one thing -- PHP's create_function and eval are horribly fucked... much like the language itself.