InteractionVisualizer icon indicating copy to clipboard operation
InteractionVisualizer copied to clipboard

Startup Time Improvement

Open SladeHazard opened this issue 2 years ago • 4 comments

The plugin delays server startup time by around ~5 seconds because of the time it takes to load, please fix this it shouldn't take more than a second to load...

I have 150+ plugins on my server and my server only takes 18 seconds to start, but this plugin alone increases it to around 25 seconds

[08:56:06] [Server thread/INFO]: [InteractionVisualizer] Enabling InteractionVisualizer v1.18.7.0 [08:56:06] [Server thread/INFO]: [InteractionVisualizer] InteractionVisualizer has hooked into LightAPI! [08:56:09] [Server thread/INFO]: [InteractionVisualizer] Loading languages... [08:56:09] [Server thread/INFO]: [InteractionVisualizer] Opened Sqlite database successfully [08:56:09] [Server thread/INFO]: [PlaceholderAPI] Successfully registered internal expansion: interactionvisualizer [2.0.0] [08:56:09] [Server thread/INFO]: [InteractionVisualizer] InteractionVisualizer has been enabled!

SladeHazard avatar Sep 29 '23 08:09 SladeHazard

Most of the load time is from connecting to the SQLite database, it is just a library call. It might be possible to improve, but improving load time by 5 seconds is not a high priority right now. I'll see if I can do anything about it in the future.

LOOHP avatar Sep 30 '23 00:09 LOOHP

Most of the load time is from connecting to the SQLite database, it is just a library call. It might be possible to improve, but improving load time by 5 seconds is not a high priority right now. I'll see if I can do anything about it in the future.

but im not even using any data related functions from the plugin, simply just the animations which are toggled on by default. maybe you could add a disable option for the sqlite ? or Mysql if that would fix it

SladeHazard avatar Sep 30 '23 00:09 SladeHazard

I just tested and switching to MySQL doesn't make any difference, and this may not seem like a big issue to you but plugins like these are the reason startup time reaches around ~40seconds, it all adds up in the end

SladeHazard avatar Sep 30 '23 00:09 SladeHazard

hey , any update ?

SladeHazard avatar Nov 01 '23 13:11 SladeHazard