You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "orpiske (via GitHub)" <gi...@apache.org> on 2023/04/08 10:12:45 UTC

[GitHub] [camel] orpiske commented on pull request #9825: fixed results of inspection "Single char arg in startsWith() and endsWith() can be substituted with charAt()"

orpiske commented on PR #9825:
URL: https://github.com/apache/camel/pull/9825#issuecomment-1500859414

   > Does the JDK not itself optimize for such use-cases, as its common to check starts with a single char.
   
   It probably does. AFAIK, there's a lot that could be in play here: from the JVM/compiler optimizing this, auto-vectorization, to how each platform handle the specific behaviors of the low-level operations that perform this change ... I'd probably leave this one as is. 


-- 
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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org