Perf - Lots of time being spent in HashCompare.GenericCompare due to LowerComputedListOrArrayExpr #13033
Labels
Area-Compiler-Checking
Type checking, attributes and all aspects of logic checking
Feature Improvement
Theme-Performance
Please provide a succinct description of the issue.
Repro steps
The project I'm seeing this in is the slowest of about 300 in our solution to compile. The project is contains sensitive information, so I'm unable to share it and I have been unable to reproduce this issue in a way that I can share here.
What I can provide is the subtree from a profile of the compiler as it compiles the project.
For reference, total profiled compile of the project took 29,938 ms, so we're spending ~5% of compile time doing these comparisons.
Expected behavior
Compiler should be quick to run
Actual behavior
Compiler is spending a lot of time in GenericCompare
Known workarounds
N/A
Related information
I'm running with
From past experience, swapping a Map for a Dictionary can improve performance in lookups, which would be a change to https://github.com/dotnet/fsharp/blob/main/src/fsharp/TypedTree.fs#L5383
I've not managed to build the compiler inside our company firewall, so I've not been able to try this out.
The text was updated successfully, but these errors were encountered: