Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Speed up plugin loading by caching class transformation scan results #14

Open
Jannyboy11 opened this issue Oct 4, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@Jannyboy11
Copy link
Owner

Jannyboy11 commented Oct 4, 2021

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 Jannyboy11 added the enhancement New feature or request label May 10, 2023
@Jannyboy11
Copy link
Owner Author

Related to: #23

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant