in reply to Re^2: Label makes a sub to return empty list -- "secret"? documented?
in thread Label makes a sub to return empty list -- "secret"? documented?
Sometimes, I prefer to invert the numbers to get the time saved to put things into perspective.
27367269 calls/s = 37 ns/call 31367629 calls/s = 32 ns/call 35161744 calls/s = 28 ns/call
So _: is 9 ns faster than return (assuming the numbers are meaningful).
After 100 million calls, you still wouldn't have saved a second by switching from return to _:.
Update: I had moved a decimal point in the wrong direction. Fixed.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Label makes a sub to return empty list -- "secret"? documented?
by hippo (Archbishop) on Sep 13, 2025 at 09:26 UTC | |
by ikegami (Patriarch) on Sep 13, 2025 at 14:48 UTC |