On 23/3/23 10:29, Andrew Rowley wrote:
On 23/03/2023 11:39 am, David Crayford wrote:
FYI, the OpenJ9 JIT can implement JIT intrinsics to generate native
decimal instructions when running on z/OS. IBM have open source
OpenJ9 and OMR so you can snoop around the code
https://github.com/eclipse-openj9/openj9/blob/master/jcl/src/openj9.dataaccess/share/classes/com/ibm/dataaccess/DecimalData.java
More interesting is:
https://github.com/eclipse-openj9/openj9/blob/master/jcl/src/java.base/share/classes/com/ibm/jit/BigDecimalExtension.java
Awesome! Thanks for the link, I hadn't seen that before. It just proves
what some of us have known for a while and what others refuse to
believe; Java on z/OS is a world class product. Now, if only IBM would
sync the release cycles with the other platforms. Java 17 can't come
soon enough for us as Spring Boot moves to Java 17 as the minimum
supported version in December.
since that implies DFP is used for BigDecimal calculations.
However, BigDecimal is immutable so by specification calculations
create a new object for every intermediate value. Hopefully the
compiler can optimize away most of them, if you require maximum
performance.
Immutable types can be a huge boost to optimization. That's why
Functional programming languages like Clojure are so fast.
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN