Class-Closure reviews

RSS | Module Info

Class-Closure (0.21) ****

Wow! This is FAST!! (and clean, of course!)

Methods calls seem to be twice as fast as normal methods. And this will increase if you use a lot of attributes in your methods (as it is always the case in real world situations).

But it takes a lot of memory: classes shown in take 10.7KB per object with this module, compared to only 0.16KB per object for a traditional hash-based class and 0.12Kb for an array-base class.
Inheritance is very slow (4 to 5 times slower), as well as constructors (100 times slower!).
The problem is that memory consumption and constructors' slowness will increase with the number and complexity of your methods...

For me, the main drawback stays the slowness of inherited methods.
Could this be optimized?