ScalaPluginLoader icon indicating copy to clipboard operation
ScalaPluginLoader copied to clipboard

Speed up plugin loading by caching class transformation scan results

Open Jannyboy11 opened this issue 3 years ago • 1 comments

Currently ScalaLoader scans all classes in a plugin's jar file for special annotations from which it detects the plugin's main class, and to detect which bytecode transformations to apply and where. This happens every time a ScalaPlugin loads.

This could be optimized by caching the scan results in a file on disk (and in-memory even), and if the hash of (plugin + ScalaLoader version) hasn't changed on reload, then those scan results from a previous run can be used directly.

Jannyboy11 avatar Oct 04 '21 10:10 Jannyboy11

Related to: https://github.com/Jannyboy11/ScalaPluginLoader/issues/23

Jannyboy11 avatar Mar 25 '24 08:03 Jannyboy11