Bentobox: Poor performance

Created on 23 Nov 2020  路  6Comments  路  Source: BentoBoxWorld/BentoBox

unknown

Using BentoBox 1.15.1 on Paper 1.16.4
With main addon being AOneBlock 1.4.5

Noticed tps was dropping with 40/50+ players so grabbed a spark sampler and then noticed bentobox is the culprit.

https://spark.lucko.me/#hShcJsIg5E

Thanks in advance for taking a look.

Done Bug

All 6 comments

It looks like it is the updateInventory() call that is causing this:
Screen Shot 2020-11-26 at 6 16 24 PM
This call is deprecated, but as the JavaDocs say there is no alternative.

This call is made to update the player's inventory when they illegally pick up items that they should not. In the report, it looks like the item pickup is being rejected. I'll see if there's a way to optimize this so that it doesn't get called unless it is required.

This change should help. I'd be interested to see if it does.

This change should help. I'd be interested to see if it does.

Thanks! I will get back to you after the weekend (when I have meaningful timings/sparks)

New spark sampler, still is some impact I think, but not 100% sure.
https://spark.lucko.me/#sVYW315gA9

Looks clean to me.

Awesome, well thanks for the help :D

Was this page helpful?
0 / 5 - 0 ratings

Related issues

SirvydasS picture SirvydasS  路  6Comments

wellnesscookie picture wellnesscookie  路  3Comments

wellnesscookie picture wellnesscookie  路  5Comments

Bobbbe picture Bobbbe  路  5Comments

voodootje0 picture voodootje0  路  6Comments