What to do with Java BigDecimal performance?

后端 未结 20 2534
陌清茗
陌清茗 2020-11-29 17:28

I write currency trading applications for living, so I have to work with monetary values (it\'s a shame that Java still doesn\'t have decimal float type and has nothing to s

20条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-29 18:17

    Only 10x performance increase desired for something that is 1000x slower than primitive?!.
    

    Throwing a bit more hardware at this might be cheaper (considering the probability of having a currency calculation error).

提交回复
热议问题