I have a short program that takes x500 longer to run when debugging. Is this kind of performance cost unusual?
Recently I’ve only used F# once a year (for Advent of Code) so it may just be my memory that is a little rosy when I expect debugging to be no more than about x10 slower.
What I’m seeing is:
fsi: 0.448s
f5: 412.684s
ctrl f5: 0.786s
My guess is that ‘brute force’ code is being extremely optimized and so the change reflects the degree of optimization rather than anything directly related to debugging. But I just wanted to check whether there were any common causes for significantly slower debugging perfomance? (e.g.: .net 5 vs .net 3, vscode vs vstudio, use of some feature, …)
I’m just asking out curiosity, it’s Not a real problem.
code: https://github.com/codybartfast/advent-of-code/blob/main/Day09.fs
input: https://github.com/codybartfast/advent-of-code/blob/main/Day09.txt
I’m using .net 5 (tried 5.0.100-rc.2.20479.15 and 5.0.100) with VSCode on Windows, with “C# for Visual Studio Code (powered by OmniSharp)” v1.23.7.