@postmodern you should have only single === call, inside the branch taken by “when” match.
https://godbolt.org/z/PK4azcP6G
https://godbolt.org/z/r73zebvaW
Diffidence in codepath is that fairly similar, but === case version have less indirection and getivar at the top. Dunno if this have any benefit for JIT.
I bet @tenderlove knows the answer!