Hi all! To recap, we use Apache-commons math extensively and we would like to improve performance by improving performance in the FastMath (now named AccurateMath) class by using Java.lang.Math methods where those are annotated with the HotSpotIntrinsicCandidate/IntrinsicCandidate annotation. One problem is that FM/AM is not a drop-in replacement for jlM as of java 9. I could add the methods needed easily (if we ignore the performance penalty for the FMA operation when using BigDecimal) so I could get on with the actual performance work (NB that FMA is marked as IntrinsicCandidate and that modern intel cpu:s have integral support for FMA). If FM/AM is NOT to be a drop-in replacement for jlM, then I can get on with finding a solution that enables users to select a math provider for the math lib, thus being able to select jlM if the additional performance is desired.
On another note, FM/AM is advertised as being more accurate than jlM. Anybody knows if this applies to methods using intrinsics as well? Cheers Erik Svensson Principal Architect Strategic Programs, Platform & Product Engineering [Nasdaq, Inc.]<http://www.nasdaq.com/> Desk Mobile Email Address + 46 8 405 66 39 + 46 73 449 66 39 [email protected] Tullvaktsvägen 15, Stockholm [signature_1995811516]<https://www.facebook.com/nasdaq/> [signature_2006515854]<https://twitter.com/nasdaq> [signature_734324012]<https://www.linkedin.com/company/nasdaq> [signature_822961489]<https://www.instagram.com/nasdaq/> [signature_618434639]<https://www.pinterest.com/nasdaq/> rewritetomorrow.com<http://rewritetomorrow.com/> ******************************************* CONFIDENTIALITY AND PRIVACY NOTICE: This e-mail and any attachments are for the exclusive and confidential use of the intended recipient and may constitute non-public information. Personal data in this email is governed by our Privacy Policy at https://www.nasdaq.com/privacy-statement unless explicitly excluded from it; please see the section in the policy entitled “Situations Where This Privacy Policy Does Not Apply” for circumstances where different privacy terms govern emailed personal data. If you received this e-mail in error, disclosing, copying, distributing or taking any action in reliance of this e-mail is strictly prohibited and may be unlawful. Instead, please notify us immediately by return e-mail and promptly delete this message and its attachments from your computer system. We do not waive any work product or other applicable legal privilege(s) by the transmission of this message. *******************************************
