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

Eagerly filter classes #333

Merged
merged 1 commit into from Aug 30, 2022
Merged

Eagerly filter classes #333

merged 1 commit into from Aug 30, 2022

Conversation

zentol
Copy link
Contributor

@zentol zentol commented Aug 30, 2022

Addresses #318.

Reduce the maximum memory requirement of the JarArchiveComparator by having it apply filters while classes are being loaded and removing them from the ClassPool when filtered.

If a package filter is encountered we switch to a 2 step procedure, first reading all package filters, then reloading all classes. (Quite annoying but I don't see an alternative apart from rejecting the PR).

Diff is a bit larger than desired so tests like FilterTest, that relied on filtering to happen after a CtClass is created, continue to work as-is.

@siom79 siom79 merged commit b2ffdd9 into siom79:master Aug 30, 2022
@siom79
Copy link
Owner

siom79 commented Aug 30, 2022

Released with 0.16.0.

Thanks a lot for the contribution.

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.

None yet

2 participants