DiazCarrete, How the case-of-known-constructor optimization (along with the worker-wrapper transformation) can optimize away the passing of records as function arguments.
🔗 https://www.reddit.com/r/haskell/comments/170f6qa/comment/k6spn9n/
🔗 https://gist.github.com/danidiaz/c6590ce5236578f58b696c0c4f60110cOptimized core for a functions, where the use of records as arguments has been optimized away. The name of the optimized function has changed to "wfoofun", possibly indicating the use of the worker-wrapper transform.
Original Haskell code for a recursive function that takes a record as argument.
Add comment