why does F# inline cause 11x performance improvement
问题 I am working on some heavy cpu bound problem. I see a big performance improvement when I use the inline keyword. I create a dictionary from the standard .net library passing in a custom key Comparer see code and timing results below https://gist.github.com/4409734 without inline keyword on Eq_cmp > perf_run 10000000 ;; Real: 00:00:11.039, CPU: 00:00:11.029, GC gen0: 771, gen1: 3, gen2: 1 val it : unit = () using inline keyword on Eq_cmp perf_run 10000000 ;; Real: 00:00:01.319, CPU: 00:00:01