kongmingzi commented on PR #13101:
URL: https://github.com/apache/dubbo/pull/13101#issuecomment-1731018220

   EN:The code in question originally used the Class.cast method for type 
casting, which is implemented through reflection. Therefore, I've modified it 
to use the type casting operator, as this operator is directly handled by the 
JVM through the checkcast bytecode instruction, eliminating any additional 
overhead from method calls. This adjustment is intended to optimize performance 
by leveraging the more efficient approach of direct type casting.
   
   CN:此处使用的是Class.cast 方式去转换的,这个是通过反射实现的,所以我给改成了类型转换运算符,因为类型转换运算符是直接由JVM通过 
checkcast字节码指令处理的,没有额外的开销调用


-- 
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]

Reply via email to