WHEN, OR IF?

Why are “when” statements faster than if-else ones? and what are they?