Calculate factorials
  • Rust 83.7%
  • Dockerfile 16.3%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2022-09-21 20:00:48 +01:00
.devcontainer add devcontainer configs 2021-12-03 03:47:54 +00:00
.github/workflows chore: enable ci 2022-02-10 20:22:24 +00:00
benches fix: update package reference in benchmark 2021-11-23 20:11:38 +00:00
src fix: simplify factorial function. 2021-11-24 04:19:31 +00:00
.gitignore chore: add default.nix for deterministic builds 2022-02-10 20:15:47 +00:00
Cargo.lock chore: update version with dev tag 2021-11-23 20:11:14 +00:00
Cargo.toml chore: update version with dev tag 2021-11-23 20:11:14 +00:00
LICENSE Create LICENSE 2022-09-21 20:00:41 +01:00
README.md Fix typo in README.md 2021-04-17 17:47:51 +01:00

Parallel Factorial ⚙️

Calculates factorial numbers using rayon for parallel processing.

Example

Calculating 1000000! with a serial algorithm takes 44 seconds on an Apple M1.

1000000! using this parallel algorithm takes 2.15 seconds.

Purpose

Simple learning project to figure out how to use rayon for some number crunching. This is very unlikely to be useful to anyone but it's here regardless 🙂