Skip to content

Stack overflow #180

Open
Open
@sebcom

Description

@sebcom

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions