Luohuayu / CatServer

高性能和高兼容性的1.12.2/1.16.5/1.18.2版本Forge+Bukkit+Spigot服务端 (A high performance and high compatibility 1.12.2/1.16.5/1.18.2 version Forge+Bukkit+Spigot server)
https://catmc.org
GNU Lesser General Public License v3.0
1.98k stars 211 forks source link

[Suggestion] Use ReflectASM to optimize reflection. #362

Closed ahdg6 closed 2 years ago

ahdg6 commented 3 years ago

It's identify that this library is fast but may break something. just a suggestion here as I know Catserver is a Hybrid Core which is focusing on meeting best performance. Thank you ε

https://github.com/EsotericSoftware/reflectasm

ahdg6 commented 2 years ago

With the iteration of the Java version, the advantage of Reflectasm is no longer obvious. It is 25%faster than the normal reflection of Java8, and the Java11 is comparable. There is no need to sacrifice stability in exchange for not obvious performance improvement.