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

Cache host classpath #114

Merged
merged 1 commit into from
Feb 16, 2021

Conversation

yigit
Copy link
Contributor

@yigit yigit commented Feb 14, 2021

This PR adds caching for host classpath to avoid calling ClassGraph for
every compilation. In my local tests, it saves between 50 to 80ms per
compilation on my laptop, which is not necessarily much but adds up when
you run hundreds of them.

I've also cached common jars we find from there. It does not necessarily
help with performance but rather as a cleanup to keep all of them in 1
place.

Test: existing tests
Issue: #113

@tschuchortdev tschuchortdev enabled auto-merge (rebase) February 16, 2021 16:05
@tschuchortdev
Copy link
Owner

Thanks. I think you will have to rebase it yourself since I don't have write access to your fork.

This PR adds caching for host classpath to avoid calling ClassGraph for
every compilation. In my local tests, it saves between 50 to 80ms per
compilation on my laptop, which is not necessarily much but adds up when
you run hundreds of them.

I've also cached common jars we find from there. It does not necessarily
help with performance but rather as a cleanup to keep all of them in 1
place.

Test: existing tests
Issue: tschuchortdev#113
@yigit yigit force-pushed the cache-host-classpaths branch from bd6e6f2 to 3d62f9d Compare February 16, 2021 20:21
@tschuchortdev tschuchortdev merged commit 4ef88b2 into tschuchortdev:master Feb 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants