On Sat, 20 Apr 2024 07:39:53 GMT, Chen Liang wrote:
>> src/java.base/share/classes/java/lang/runtime/SwitchBootstraps.java line 685:
>>
>>> 683: record TypePairs(Class from, Class to) {
>>> 684:
>>> 685: private static final Map typePairToName =
>>> initialize();
>>
>> IfÂ
> We can reduce overhead of first use of a switch bootstrap by moving
> `typePairToName` into `TypePairs` and by explicitly overriding `hashCode` and
> `equals`. The first change avoids loading and initializing the `TypePairs`
> class in actual cases, the second remove some excess code
> We can reduce overhead of first use of a switch bootstrap by moving
> `typePairToName` into `TypePairs` and by explicitly overriding `hashCode` and
> `equals`. The first change avoids loading and initializing the `TypePairs`
> class in actual cases, the second remove some excess code
On Sat, 20 Apr 2024 00:00:54 GMT, ExE Boss wrote:
>> We can reduce overhead of first use of a switch bootstrap by moving
>> `typePairToName` into `TypePairs` and by explicitly overriding `hashCode`
>> and `equals`. The first change avoids loading and initializing the
>> `TypePairs` class in
On Fri, 19 Apr 2024 23:56:00 GMT, ExE Boss wrote:
>> We can reduce overhead of first use of a switch bootstrap by moving
>> `typePairToName` into `TypePairs` and by explicitly overriding `hashCode`
>> and `equals`. The first change avoids loading and initializing the
>> `TypePairs` class in
On Fri, 19 Apr 2024 13:23:53 GMT, Claes Redestad wrote:
> We can reduce overhead of first use of a switch bootstrap by moving
> `typePairToName` into `TypePairs` and by explicitly overriding `hashCode` and
> `equals`. The first change avoids loading and initializing the `TypePairs`
> class in
On Fri, 19 Apr 2024 13:23:53 GMT, Claes Redestad wrote:
> We can reduce overhead of first use of a switch bootstrap by moving
> `typePairToName` into `TypePairs` and by explicitly overriding `hashCode` and
> `equals`. The first change avoids loading and initializing the `TypePairs`
> class in
On Fri, 19 Apr 2024 13:23:53 GMT, Claes Redestad wrote:
> We can reduce overhead of first use of a switch bootstrap by moving
> `typePairToName` into `TypePairs` and by explicitly overriding `hashCode` and
> `equals`. The first change avoids loading and initializing the `TypePairs`
> class in
We can reduce overhead of first use of a switch bootstrap by moving
`typePairToName` into `TypePairs` and by explicitly overriding `hashCode` and
`equals`. The first change avoids loading and initializing the `TypePairs`
class in actual cases, the second remove some excess code generation from