Skip to content

shuf -i 1-100000000000 -n 256 cause memory allocation failure #11167

@oech3

Description

@oech3
$ target/release/shuf -i 1-100000000000 -n 256
memory allocation of 799999998208 bytes failed
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Maybe, we should optimize

const MAX_CAPACITY: usize = 128; // todo: optimize this

for -n .

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions