-- Fused `unionWith` in `PlutusLedgerApi.V1.Data.Value` into two outer passes (`Map.union` + a single `Map.map`), down from the previous three. The discarded `unionVal` helper returned a full `Map CurrencySymbol (Map TokenName (These Integer Integer))` that `unionWith` then re-traversed; folding it in removes that second outer walk, and a currency present on only one side now has its token map mapped once rather than wrapped and then re-mapped. The `Map.union` lookup-and-merge core is unchanged, so this is a constant-factor improvement, not an algorithmic one.
0 commit comments