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

Improved the StrutsUrlDecoder so that charset retrieval is performed only once. #773

Merged
merged 3 commits into from
Oct 25, 2023

Conversation

mygreen
Copy link
Contributor

@mygreen mygreen commented Oct 23, 2023

  • StutsUrlDecoder has performance problems when run from multiple threads, because Charset#availavleCharts(...) called StrutsUrlDecoder#getCharset(...) is synchronized blocked.
  • Therefore, Charset#availavleCharts(...) to be executed only once during the StrutsUrlDecoder initialization.

Copy link
Contributor

@sepe81 sepe81 left a comment

Choose a reason for hiding this comment

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

LGTM otherwise

Copy link
Member

@lukaszlenart lukaszlenart left a comment

Choose a reason for hiding this comment

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

👏

@lukaszlenart
Copy link
Member

Would you mind opening a JIRA ticket and link it here?

@mygreen
Copy link
Contributor Author

mygreen commented Oct 25, 2023

The fllowing JIRA tikcet was created.

https://issues.apache.org/jira/browse/WW-5359

@lukaszlenart lukaszlenart merged commit b15b83d into apache:master Oct 25, 2023
6 of 7 checks passed
@mygreen mygreen deleted the improve-urldecoder-peformance branch March 27, 2024 12:57
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