in reply to Moose immutable speedup?
my $obj= MyClass->new; my $immuobj= MyClass->new;
Shouldn't that be
Anyway, this doesn't change the result. The difference between $obj->size(27) and $obj->setsize(27) is probably caused by isa => 'Int'. size is checking that argument is int, and setsize does not.my $obj= MyClass->new; my $immuobj= MyImmuClass->new;
|
|---|