Skip to content

SPACalculator: JavaDoc note on Math.fma speed on Android - #306

Open
Elyahu41 wants to merge 1 commit into
KosherJava:masterfrom
Elyahu41:docs/spa-math-fma-performance
Open

Elyahu41 wants to merge 1 commit into
KosherJava:masterfrom
Elyahu41:docs/spa-math-fma-performance

Conversation

@Elyahu41

Copy link
Copy Markdown
Contributor

Math.fma is not always done by the hardware on Android. In debuggable apps and on x86 and x86_64 devices ART can run the BigDecimal fallback, which makes the nutation series (about 580 calls per solar position) much slower there. Release builds on arm64 and the desktop JVM are not affected. Document this so others know, and point to NOAACalculator and MeeusCalculator as alternatives. No code changes.

Claude-Session: https://claude.ai/code/session_015Er4SvtJRimfdZy8eVBECH

Math.fma is not always done by the hardware on Android. In debuggable
apps and on x86 and x86_64 devices ART can run the BigDecimal fallback,
which makes the nutation series (about 580 calls per solar position)
much slower there. Release builds on arm64 and the desktop JVM are not
affected. Document this so others know, and point to NOAACalculator and
MeeusCalculator as alternatives. No code changes.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015Er4SvtJRimfdZy8eVBECH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants