hyperdefined / ToolStats

Track various tool stats!
https://www.spigotmc.org/resources/tabcompleter.88952/
17 stars 6 forks source link

Optimalization #53

Closed Oskicz closed 7 months ago

Oskicz commented 7 months ago

Hi so this plugin is awesome its just its usage when there is alot of players Especially when they are mining What i saw on spark (mined block and lore change)

Is there any chance that you could somehow make it use less resources?

hyperdefined commented 7 months ago

Could you send a spark report that shows this? I want to see what methods it's calling mostly.

The plugin does update the lore on every single block break. I tried to "narrow" down the checks, so it will only run the lore updating functions when needed. The function itself is a bit complicated, but it's used for all lore updating. I didn't expect it to blow up. It's doing some simple find and replace checks, probably somewhere else is causing the issue.

I myself am not great with optimization, but having a spark report might guide me a little. I haven't really been active with plugin development in a bit, so I'm sorry if this takes a few to get resolved, if I can resolve it.

hyperdefined commented 7 months ago

Closing this as it's stale. I don't plan on working on ToolStats right now.