potential performance issue in the analyzer with large switch statements #50962
Labels
analyzer-stability
area-dart-model
For issues related to conformance to the language spec in the parser, compilers or the CLI analyzer.
model-flow
Implementation of flow analysis in analyzer/cfe
model-performance
Performance/memory issues in analyzer/cfe
P2
A bug or feature request we're likely to work on
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
I'm working on some generated code and am seeing a potential performance issue in the analyzer with large switch statements. I have a switch statement with 24,615 cases and notice that:
Perhaps there's some non-linear algorithm involving switch statements? The file itself is large - 1,379kb - but I'm working with other files that size or larger and not seeing the same issue.
The text was updated successfully, but these errors were encountered: