refactor: speed improvements for nanomath #44

Merged
glen merged 2 commits from nano_speed2 into main 2025-12-16 07:05:54 +00:00
Owner

Now nanomath is much faster. Resolution is still significantly slower than in pocomath, and so could probably stand some further work at some point, since it's still a key operation that may happen quite a lot as folks use the library. All of the same can be said for inlining automatic conversions: the resulting adapted function suffers a significantly larger hit in nanomath than pocomath. Nevertheless, nanomath is now quite responsive, and significantly (at least a factor of 4) faster than mathjs 15 on the polynomialRoots problem.

Resolves #43.

Now nanomath is much faster. Resolution is still significantly slower than in pocomath, and so could probably stand some further work at some point, since it's still a key operation that may happen quite a lot as folks use the library. All of the same can be said for inlining automatic conversions: the resulting adapted function suffers a significantly larger hit in nanomath than pocomath. Nevertheless, nanomath is now quite responsive, and significantly (at least a factor of 4) faster than mathjs 15 on the polynomialRoots problem. Resolves #43.
glen merged commit 988bff6db4 into main 2025-12-16 07:05:54 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
StudioInfinity/nanomath!44
No description provided.