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 benchmark.pl 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?
2 out of 2 found this review helpful. Was this review helpful to you? Yes No