-
Notifications
You must be signed in to change notification settings - Fork 87
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
Don't apply empty settings from not initialized TracingBlock #1622
Conversation
@HeikoKlare, @fedejeanne, @HannesWell : could you please check this PR and #1621? |
PS: my goal is to have some fix in 4.35 RC1 for #1621, whether it is this PR or revert of something again, or something completely different. |
After a very quick look this change seems sound. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After an in detail review this still looks save and the right thing to do.
Hi, sorry for the late reply, I was out-of-office yesterday. @iloveeclipse thank you for the fix. I actually run into a similar issue with the Maybe that's also worth doing in your case? |
Thanks for the hint. I honestly have no time digging into performance optimization in this particular area, as I never observed any performance problems here nor anyone reported that for our product. If you know what to do, please provide a PR. |
Can you explain this in more detail? The initialization of each tab from an existing launch-config should only happen once and at least the change in this PR doesn't change it. I assume you meant this as a general remark or do you think this is not save or wrong?
The main pain-point here is that initializing the 'registry' of available tracing options scans all bundles in the TP and depending on it's size this can take some time. But it's only done once per Eclipse execution (which is actually wrong, because changing the TP may change the list of tracable bundles and each bundles options). |
That's correct and this PR doesn't change that so it's safe 👍 . The detailed explanation is:
It was just a general remark about performance. This PR is safe and I don't see any need to add any changes to it. If performance every becomes a problem, we may add the early return (Zukunftsmusik).
I'd say we can leave the detailed discussion for #1252 :-) |
Fixes #1621