LiangliangSui commented on issue #1482:
URL:
https://github.com/apache/incubator-fury/issues/1482#issuecomment-2043177401
Although it is only executed during init, it is also identified as hot code.
When I benchmark, I think we can try to optimize it.
I want to try to extract the following code in ClassResolver#register into a
function (because it is not often called) and see how much the bytecode size
can be reduced.
```java
if (registeredId2ClassInfo.length <= id) {
// extract a method below.
ClassInfo[] tmp = new ClassInfo[(id + 1) * 2];
System.arraycopy(registeredId2ClassInfo, 0, tmp, 0,
registeredId2ClassInfo.length);
registeredId2ClassInfo = tmp;
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]