Performance of Fields with Union Type

The performance will be different because in the first case, the compiler can’t prove that no one will ever add more subtypes to Side.

2 Likes