will have to be good enough
Cargo Check, Format, Fix and Test / cargo CI (push) Successful in 1m29s Details

This commit is contained in:
Christoph J. Scherr 2024-02-01 17:13:39 +01:00
parent 536623d262
commit 86c0743c8b
Signed by: cscherrNT
GPG Key ID: 8E2B45BC51A27EA7
1 changed files with 3 additions and 2 deletions

View File

@ -4,7 +4,7 @@ use tokio::time::Instant;
// if we make these larger, our computer can be used as a heater🔥
type Danum = u16;
const EXP: usize = 15;
const EXP: usize = 12; // FIXME: If this goes lower than 7, somehow the mpsc breaks?
const CAP: usize = 1 << EXP;
const M: u128 = CAP as u128 * Danum::MAX as u128;
@ -53,7 +53,8 @@ async fn main() {
}
let start = Instant::now();
let separate: usize = ((M / (1 << 11 + EXP)) + 1) as usize;
let separate: usize = 1 << (EXP / 2);
// stops earlier sometimes
let (sender, recv) = std::sync::mpsc::channel();
rayon::spawn(move || {
for i in 0..separate + 1 {