Skip to content

Faster Moon positions and Moon events

Choose a tag to compare

@clarkbw clarkbw released this 15 Sep 15:01
· 152 commits to main since this release
0fe1d47

Almanac 0.4.1 speeds up Moon positions and the searches built on them in TypeScript and Swift. The public API is unchanged.

The focused year benchmark returns the same 705 Moon events:

Port v0.4.0 v0.4.1 Change
TypeScript 127.918 ms 53.918 ms 57.8% faster
Swift 127.762 ms 42.581 ms 66.7% faster

Representative Moon-dependent workloads are 35% to 62% faster in TypeScript and 51% to 69% faster in Swift.

This release also makes the tag workflow create a GitHub release for every published version.

npm install @openwaters/almanac@0.4.1
.package(url: "https://github.com/openwatersio/almanac.git", exact: "0.4.1")

Moon performance: #29. Release automation: #28.

Full changelog.