NanoLimbo icon indicating copy to clipboard operation
NanoLimbo copied to clipboard

Optimize VarInt writing

Open jonesdevelopment opened this issue 1 year ago • 2 comments

Use Velocity's VarInt writing to improve performance. See https://steinborn.me/posts/performance/how-fast-can-you-write-a-varint/

jonesdevelopment avatar Nov 22 '23 15:11 jonesdevelopment

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

Pantera07 avatar Dec 07 '23 05:12 Pantera07

https://github.com/PaperMC/Velocity/blob/07a525be7f90f1f3ccd515f7c196824d12ed0fff/proxy/src/main/java/com/velocitypowered/proxy/protocol/ProtocolUtils.java#L130-L163

Pantera07 avatar Dec 07 '23 18:12 Pantera07

Despite the most packets are pre-encoded into snapshots, this definitely won't be superfluous. Thank you)

Nan1t avatar May 02 '24 10:05 Nan1t