-
Notifications
You must be signed in to change notification settings - Fork 166
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
improve RegistrationMacOsX performance #2245 #2267
Conversation
Pattern matching with String.split("-{80}\n") is quiet expensive especially if the string contains more then 80 dashes in a row. eclipse-platform#2245
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.
Change looks good in principle.
However, there are exactly 80 dashes in that output, not more than 80.
Are you sure this will actually boost performance?
I dont't have mac to test it locally. It's just that this split was logged so often that it can be seen as hotspot and local generic tests show that the alternative regex is faster, also reusing the splitted result may help |
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.
Ok, then let's merge this and see if it helps 👍
There are JUnit tests that have "real-life" console outputs. See: TestUnitRegistrationMacOsX. These should be runnable on all OSes. Can you provide numbers how much faster they run? |
Thanks for taking care of performance. |
Pattern matching with String.split("-{80}\n") is quiet expensive especially if the string contains more then 80 dashes in a row.
#2245