How can Java inline over virtual function boundaries?

前端 未结 3 889
轮回少年
轮回少年 2021-02-20 10:03

I\'m reading up some material on whether Java can be faster than C++, and came across the following quote:

Java can be faster than C++ because JITs can in

3条回答
  •  我在风中等你
    2021-02-20 11:03

    For what its worth, Java, C++, Assembly will provide relatively the same performance.

    Yes, better performance can be acheived with handoptimzed C++, C, or Asm ... however, for the majorty of applications out there (try everything outside of serious graphics apps), that is not the bottleneck, -and- the lower cost of implementation makes up for any perceived lower performance.

提交回复
热议问题