Repository navigation
Conversation
Do you have a spark report that shows this is a genuine issue? besides, given both structues are mutable, hashing and copying them full isn't exactly cheap either |
|
Yes, allocation profiles from our server (26.3, 48–75 players, a lot of them on older clients): |
|
It's definitely noticeable allocation, but your gc pauses look very healthy, and this isn't really the right place to address it, see Lenni0451/MCStructs#120 |
|
Thanks, that PR makes sense as the proper place. Out of curiosity, would a small cache for unchanged boss bar titles still be acceptable on top of that, or do you prefer to keep it conversion-only? We’ll compare alloc profiles once it’s in a Via build either way. |
|
Doesn't really make sense here tbh, there's 1000 other places this kind of cache could be added to otherwise. beyond the pr linked above, you should check on your plugins to not keep spamming the same bossbar lol |
|
Fair point – I traced it, it’s CMI plugin re-sending the same boss bar title on every update tick. I'll report there. Thanks for the MCStructs PR! |
Repeated team and boss bar texts were converted on every packet. The result is now cached, with a config switch to turn it off.