Case key paths are slightly expensive to resolve since they need to create a Case value under the hood, and apply a dynamic key path to it to build up something composed. Because dynamic member lookup only ever cares about one component at a time, we can bypass this extra work and access the case path directly.
Case key paths are slightly expensive to resolve since they need to create a
Case
value under the hood, and apply a dynamic key path to it to build up something composed. Because dynamic member lookup only ever cares about one component at a time, we can bypass this extra work and access the case path directly.