Discriminated Union dispatch overhead with complex Active Patterns
F# utilizes internal integer tags for Discriminated Unions (DUs), typically resulting in O(1) dispatch time via jump tables. However, the introduction of Active Patterns allows for custom logic to be executed during the pattern matching process, shifting the dispatch mechanism from a simple tag check to a function call. When integrating complex Active Patter