Crates.io | parallel-factorial |
lib.rs | parallel-factorial |
version | 0.2.1 |
source | src |
created_at | 2021-11-20 17:49:51.693956 |
updated_at | 2021-11-23 18:53:00.512617 |
description | Simple, fast, parallel factorial calculator. |
homepage | |
repository | https://github.com/doggodoge/parallel-factorial |
max_upload_size | |
id | 485010 |
size | 22,193 |
Calculates factorial numbers using rayon for parallel processing.
Calculating 1000000! with a serial algorithm takes 44 seconds on an Apple M1.
1000000! using this parallel algorithm takes 2.15 seconds.
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 🙂