Skip to content

perf: replace slow_primes with primal - #84

Merged
DoodlesEpic merged 2 commits into
devfrom
perf/replace-slow-primes
Sep 21, 2026
Merged

DoodlesEpic merged 2 commits into
devfrom
perf/replace-slow-primes

Conversation

@DoodlesEpic

@DoodlesEpic DoodlesEpic commented Sep 21, 2026 •

Copy link
Copy Markdown
Owner

I replaced deprecated slow_primes with primal. Both use the Sieve of Eratosthenes. The command keeps its inclusive limit and existing response format.

I added an independent trial-division test for every limit from 0 through 1,000 in a separate commit.

Validation: Rust tests, formatting, Clippy, four desktop builds, the Linux AppImage smoke test, CodeQL and performance checks passed. Local calculation benchmarks were 47–84% faster than the previous dev commit.

Part of #34. Algorithm selection remains for a later task.

@DoodlesEpic DoodlesEpic self-assigned this Sep 21, 2026
@DoodlesEpic DoodlesEpic added enhancement New feature or request dependencies Pull requests that update a dependency file rust Pull requests that update Rust code labels Sep 21, 2026
@DoodlesEpic
DoodlesEpic marked this pull request as ready for review September 21, 2026 13:38
@DoodlesEpic
DoodlesEpic merged commit 4673dd1 into dev Sep 21, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file enhancement New feature or request rust Pull requests that update Rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant