JDK 20 |
---|
20 b27Fixed |
Causes :
|
Currently, record patterns in switches are implemented effectively as guards. This does not scale very well for long switches, where the same evaluations may be done many times. It would be better to factor out the common prefixes, and created nested switches.
|