References to java programs coded using primitives only

后端 未结 6 2079
刺人心
刺人心 2020-12-28 09:48

I\'ve heard of Java programs with strict latency requirements where \"new\" instructions are never -or very rarely- used (because no new=>no objects->no GC=>improved latency

6条回答
  •  無奈伤痛
    2020-12-28 10:06

    I have worked on a number of such systems. You will need to worry about creating objects if you need sub millisecond latencies. It is possible to write an application which doesn't GC all day, just to avoid any GC delays.

    However, 99%+ of applications don't need this extreme.

提交回复
热议问题