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

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

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

   @orpiske I will provide it even if it's not in favour of the suggested code cganges ;)
   https://gist.github.com/dk2k/5204c1a07d949647e277b7ceb03c266e
   In the most cases native String startsWith() and endsWith() are faster
   time for String.startsWith       49
   time for StringHelper.startsWith 74
   You can try it yourself.
   So we should discard this PR, I believe. 


-- 
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