That is surprising !
I would assume searching for an entry in a Set is atleast a few dozen opcodes, if not more - even if already searched (and so bpt's are favourable); would still be much more expensive than splitting an if for sure - I have not looked into scala's impl : but assuming reasonable implementation of 'if', this is definitely unexpected :-)