Subject: | Counter is slower than doing it by hand |
I looked into MouseX::NativeTraits to find a faster counter. Turns out
this counter is slower than doing it by hand. The attached benchmark
illustrates.
I was hoping it would be optimized like:
sub inc_counter {
return ++$_[0]->{counter};
}
Subject: | test.plx |
Message body not shown because it is not plain text.