[
https://issues.apache.org/jira/browse/HDDS-16749?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ASF GitHub Bot updated HDDS-16749:
----------------------------------
Labels: pull-request-available (was: )
> Avoid regex compilation when splitting canonical URIs for S3 signatures
> -----------------------------------------------------------------------
>
> Key: HDDS-16749
> URL: https://issues.apache.org/jira/browse/HDDS-16749
> Project: Apache Ozone
> Issue Type: Improvement
> Reporter: Huang Kuan Hao
> Assignee: Huang Kuan Hao
> Priority: Major
> Labels: pull-request-available
>
> StringToSignProducer compiles the same slash regex for each canonical
> request. Use the existing StringUtils.splitPreserveAllTokens helper to avoid
> regex compilation and remove the custom splitter, preserving empty path
> segments and signature behavior.
> Before/after verification produced identical canonical requests and strings
> to sign across 112,008 GET/PUT cases. All 68 signature tests pass. JMH of
> buildCanonicalRequest showed about 556–664 fewer allocated bytes per
> operation for the tested paths.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]