What is the performance of Shift Operation in Java
compared to 开发者_StackOverflow社区C++
Generally speaking, if you think you're going to get significant performance differences in primitive operations between different languages, you're sadly mistaken, and if you think you need to re-write your app or part of your app in a different language to get better performance, the time would be better spent looking at your algoritms and data structures.
This seems like an easy question to answer with some profiling tools available in your favorite C++ and Java IDE's.
精彩评论