Does When...is with sealed classes encourage a performance antipattern?

@darksnake I was interested in the performance of Kotlin is recently as well.
I was mostly concerned about instanceof in generated Java byte code.

I have found this test on github:

As far as I see, in the linked article author mentions about 25% to 35% slower performance comparing to use of enum-based version.

The original post is in Russian:

But just in case following is google-translated version in English:

1 Like