bitvec icon indicating copy to clipboard operation
bitvec copied to clipboard

Stack overflow

Open sebcom opened this issue 3 years ago • 0 comments

Trying create equivalent array or slice with BitVec

const MAX_SIZE_SIEVE: usize = 1000_000_000;

sieve: vec![false; MAX_SIZE_SIEVE].into_boxed_slice(),

by

sieve: bitvec![0; MAX_SIZE_SIEVE].into_boxed_slice(),

but then I get an stack overflow runtime error

If I reduce MAX_SIZE_SIEVE to 1_000_000 then the error goes away.

sebcom avatar Jun 09 '22 11:06 sebcom