Solved Are unused classes detrimental to server performance?

Discussion in 'Spigot Plugin Development' started by Tedstar, Jun 8, 2017.

  1. If there are classes inside the JAR file which are not used by the plugin, would they impact the performance of the server / would they be loaded into memory?

    I don't see why they would, seeing as the main plugin class has to be specified in plugin.yml, but I don't want to potentially impact the performance of servers.
  2. No.
    • Like Like x 1
  3. Classes are loaded as needed or when manually loaded by a classloader. That said, i have no idea what the plugin classloader actually does, but i would assume it only initially loads the main class as as specified in plugin.yml.
    • Informative Informative x 1