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

Issue #435: improve performance of import resolver #436

Open
wants to merge 7 commits into
base: release/3.6.x
Choose a base branch
from

Conversation

reckart
Copy link
Member

@reckart reckart commented Jan 23, 2025

What's in the PR

  • Introduce thread-local cache in ImportResolver
  • Fix leak between multi-threading tests
  • Try reducing the cases where unnecessary URLs are created because they can be expensive to create
  • Introduce a cache for services loaded per classloader to avoid expensive repeated loading of services via a ServiceLoader

How to test manually

  • No specific test procedure

Automatic testing

  • PR adds/updates unit tests

Documentation

  • PR adds/updates documentation

Organizational

  • PR adds/updates dependencies.
    Only dependencies under approved licenses are allowed. LICENSE and NOTICE files in the respective modules where dependencies have been added as well as in the project root have been updated.

- Introduce thread-local cache in ImportResolver
- Fix leak between multi-threading tests
- Bit of cleaning up
- Try short-cutting the check if a URL target exists by handling file URLs directly via the file system and not opening a stream
- Try reducing the cases where unnecessary URLs are created because they can be expensive to create
- Improve some documentation
- Minor cleaning up
- Introduce a cache for services loaded per classloader to avoid expensive repeated loading of services via a ServiceLoader
- Introduce a cache for services loaded per classloader to avoid expensive repeated loading of services via a ServiceLoader
- Added method to clear the service cache
@reckart reckart added this to the 3.6.1 milestone Jan 23, 2025
@reckart reckart self-assigned this Jan 23, 2025
@reckart reckart added the ⚙️ Refactoring Improvement for development or maintainability label Jan 23, 2025
- Added build action from main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⚙️ Refactoring Improvement for development or maintainability
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant