zendframework/zf2 — pull request #6142 by moderndeveloperllc (2014-04-15 15:17:26+00:00)
Title: Optimize ClassMethods hydrate() for loops and large objects

I've added a `hydratedMethodName` private member to optimize the `hydrate()` method for `ClassMethod` instances. This can be an order-of-magnitude increase in speed when hydrating result sets. In my tests, the speed for 100+ objects with about 50 set methods each went from around 4ms to .4ms for each object hydrated. The extra isset() and array assignment for the first loop did not appreciably increase it's execution time. Also a few formatting cleanups.