What to do with Java BigDecimal performance?

后端 未结 20 2531
陌清茗
陌清茗 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条回答
  •  盖世英雄少女心
    2020-11-29 18:10

    Is JNI a possibility? You may be able to recover some speed and potentially leverage existing native fixed point libraries (maybe even some SSE* goodness too)

    Perhaps http://gmplib.org/

提交回复
热议问题