Skip to content

Performance improvements#10105

Merged
diemol merged 3 commits intoSeleniumHQ:trunkfrom
larrydiamond:trunk
Dec 2, 2021
Merged

Performance improvements#10105
diemol merged 3 commits intoSeleniumHQ:trunkfrom
larrydiamond:trunk

Conversation

@larrydiamond
Copy link
Copy Markdown
Contributor

Description

These changes are purely performance improvements to make Selenium run faster, there are no new features in this pull request.

Motivation and Context

These changes provide performance improvements only. The uses of StringBuffer below can be safely replaced with StringBuilder and avoid synchronization overhead. The change to use equalsIgnoreCase is faster and reduces memory consumption by eliminating many temporary strings.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • [X ] I have read the contributing document.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • [ X] All new and existing tests passed.

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Nov 30, 2021

CLA assistant check
All committers have signed the CLA.

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Dec 1, 2021

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

Copy link
Copy Markdown
Member

@diemol diemol left a comment

Choose a reason for hiding this comment

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

@larrydiamond, thank you for this PR. However, we are not making any changes under the thoughtworks package name because it a legacy package and some code is deprecated. This willl be eventually phased out.

If you wish, please keep the change to Platform.java only and then I can merge this PR.

@larrydiamond
Copy link
Copy Markdown
Contributor Author

Done.

Copy link
Copy Markdown
Member

@diemol diemol left a comment

Choose a reason for hiding this comment

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

Thank you, @larrydiamond!
Congrats on your first contribution! 🎉

@diemol diemol merged commit 1902fb8 into SeleniumHQ:trunk Dec 2, 2021
elgatov pushed a commit to elgatov/selenium that referenced this pull request Jun 27, 2022
* Performance improvements

* Rolling back changes in the deprecated thoughtworks package

Co-authored-by: Diego Molina <[email protected]>
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.

3 participants