will have to be good enough
Cargo Check, Format, Fix and Test / cargo CI (push) Successful in 1m29s
Details
Cargo Check, Format, Fix and Test / cargo CI (push) Successful in 1m29s
Details
This commit is contained in:
parent
536623d262
commit
86c0743c8b
|
@ -4,7 +4,7 @@ use tokio::time::Instant;
|
||||||
|
|
||||||
// if we make these larger, our computer can be used as a heater🔥
|
// if we make these larger, our computer can be used as a heater🔥
|
||||||
type Danum = u16;
|
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 CAP: usize = 1 << EXP;
|
||||||
const M: u128 = CAP as u128 * Danum::MAX as u128;
|
const M: u128 = CAP as u128 * Danum::MAX as u128;
|
||||||
|
|
||||||
|
@ -53,7 +53,8 @@ async fn main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
let start = Instant::now();
|
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();
|
let (sender, recv) = std::sync::mpsc::channel();
|
||||||
rayon::spawn(move || {
|
rayon::spawn(move || {
|
||||||
for i in 0..separate + 1 {
|
for i in 0..separate + 1 {
|
||||||
|
|
Loading…
Reference in New Issue