joao-jordy opened a new pull request, #1886:
URL: https://github.com/apache/commons-lang/pull/1886

   \`getShortClassName(String)\` copied the string once per leading \`[\` while 
stripping array encoding, which is O(n^2) in the number of dimensions. This 
counts the prefix in a single pass and strips it once.
   
   - Behaviour is unchanged for valid class names. Bracket-only input still 
throws the same exception as before. A separate PR covers that case.
   - A 200k-bracket input went from about 930 ms to about 8 ms.
   - Adds a regression test with a 1000-dimension valid array name.
   
   japicmp (3.22.0 baseline): no compatibility issues.
   
   Note: CONTRIBUTING asks for a JIRA key in the commit message. There is none 
yet for this change; happy to open one if a maintainer wants it.
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to