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

Profile class loader and impact in performance #243

Open
enridaga opened this issue Apr 7, 2022 · 0 comments
Open

Profile class loader and impact in performance #243

enridaga opened this issue Apr 7, 2022 · 0 comments
Labels
Improvement Doing the same thing but better

Comments

@enridaga
Copy link
Member

enridaga commented Apr 7, 2022

The CLI has some trace log messages to monitor execution time, for example:

[main] TRACE com.github.sparqlanything.cli.SPARQLAnything - [time] Before init: 349
[main] TRACE com.github.sparqlanything.cli.SPARQLAnything - [time] After init: 359
[main] DEBUG com.github.sparqlanything.cli.SPARQLAnything - No input file
[main] TRACE com.github.sparqlanything.cli.SPARQLAnything - [time] Before executeQuery: 401
[main] TRACE com.github.sparqlanything.cli.SPARQLAnything - [time] After executeQuery: 8824
[main] TRACE com.github.sparqlanything.cli.SPARQLAnything - [time] Process ends: 8824

I noticed how most of the times there are about ~400ms spent in classloading before executing the query. The project is growing fast and I was wondering maybe we should do some analysis and see if we there are unneeded classes loaded (for example, functions loaded as static code). It may be worth studying whether we can be lazy in loading the function library (which will grow forever)

@enridaga enridaga added the Improvement Doing the same thing but better label Apr 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Improvement Doing the same thing but better
Projects
None yet
Development

No branches or pull requests

1 participant