General

Profile

kei-s (Kei Shiratsuchi)

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 1 1

Activity

09/21/2017

09:39 AM Ruby Bug #13917: Comparable#clamp is slower than using Array#min,max.
Thank you, Hanmac. I understand why `Array#min/max` is so fast.
I guess `clamp` would be implemented in `numeric.c` and so on to be as fast as `Array#min/max`.
kei-s (Kei Shiratsuchi)

09/19/2017

02:26 AM Ruby Bug #13917 (Rejected): Comparable#clamp is slower than using Array#min,max.
Comparable#clamp is slower than using Array#min,max.
(I noticed it by @onk's tweet. https://twitter.com/onk/status/907856892604461056)
### Performance
```
user system total real
minmax: 0.740000 ...
kei-s (Kei Shiratsuchi)

Also available in: Atom