NanoLimbo
NanoLimbo copied to clipboard
Optimize VarInt writing
Use Velocity's VarInt writing to improve performance. See https://steinborn.me/posts/performance/how-fast-can-you-write-a-varint/
Related info https://github.com/PaperMC/Paper/blob/931781c220b98dde0159c9a3c8dce06c3b2b1e13/patches/server/1040-Optimize-VarInts.patch https://github.com/PaperMC/Paper/pull/6957 https://github.com/PaperMC/Paper/pull/8418
https://github.com/PaperMC/Velocity/blob/07a525be7f90f1f3ccd515f7c196824d12ed0fff/proxy/src/main/java/com/velocitypowered/proxy/protocol/ProtocolUtils.java#L130-L163
Despite the most packets are pre-encoded into snapshots, this definitely won't be superfluous. Thank you)