Will using longs instead of ints benefit in 64bit java

前端 未结 3 654
孤街浪徒
孤街浪徒 2020-12-03 08:08

In a 64 bit VM, will using longs instead of ints do any better in terms of performance given that longs are 64 bits in java and hence pulli

3条回答
  •  被撕碎了的回忆
    2020-12-03 08:20

    Might be faster, might be slower. Depends on the specific Java implementation, and how you use those variables. But in general it's probably not enough difference to worry about.

提交回复
热议问题