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

Fix memory leak & and use Map instead of list to avoid itterating an Array constantly inside a synchronized block #1635

Merged
merged 1 commit into from Apr 19, 2024

Conversation

giangianoulas
Copy link
Contributor

Switch from List to Map on CancelManager to improve performance,
Fix memory leak & reduce scope of synchronized block Issue #1633

Copy link
Contributor

@hvbtup hvbtup left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, thank you.

Copy link
Contributor

@merks merks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think generating keys in order to use a map is overkill and is certainly not optimal when a set will do and using a concurrent implementation can avoid synchronization entirely.

@merks
Copy link
Contributor

merks commented Apr 18, 2024

It would be great if you could squash this into a single commit. I'm not sure how to actually do that with EGit though. But if you don't know how to do it either, I can try to help with that. Thanks for contributing!

@giangianoulas
Copy link
Contributor Author

I have no idea how to actually do it ;)

@speckyspooky speckyspooky added this to the 4.16 milestone Apr 18, 2024
@speckyspooky speckyspooky added the BugFix Change to correct issues label Apr 18, 2024
@merks
Copy link
Contributor

merks commented Apr 19, 2024

FYI, I've been investigating why the build fails with memory exceptions. I finally got one to pass but now your force push kicked another build:

image

Let's see how that goes.

@giangianoulas
Copy link
Contributor Author

giangianoulas commented Apr 19, 2024

Commits are now squashed

Copy link
Contributor

@merks merks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks better now. I just want to see a clean build before proceeding.

@merks merks merged commit 6d2994a into eclipse-birt:master Apr 19, 2024
3 checks passed
@merks
Copy link
Contributor

merks commented Apr 19, 2024

@giangianoulas

Thanks for contributing and for squashing too. 🏅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BugFix Change to correct issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants