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

   > @orpiske @davsclaus I found an article dated to 2020 
https://programmer.help/blogs/the-optimization-and-application-of-bit-operation-in-java.html
 Left shift gives some performance gain. My idea was to get as more performance 
as possible since Camel is a server software. Bit shifts are basis of computer 
science. If one doesn't know them, the sources of Camel can't help him/her.
   
   While, indeed, even ourselves do micro-optimizations from time to time, we 
usually try to favor the ones that improve readability (i.e.: like the ones 
yourself did replacing the `""` checks for `isEmpty()`). These 
micro-optimizations hardly have any meaningful result on how Camel performs: 
bottlenecks are more often than not elsewhere in the code. 
   
   Ultimately, the reduced readability ends up affecting the maintainers more - 
as we'll take longer to understand the code in 1, 2 ... 3 months from now. When 
you have to deal with such a large code base, balancing things like these 
become just as important.


-- 
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-unsubscr...@camel.apache.org

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

Reply via email to