Skip to content

Unbounded memory #1

@chadbrewbaker

Description

@chadbrewbaker

Cool tool!

One thing caught my eye:

println!("{}", rizzy.handle_line(&line.unwrap()));

If you are processing a stream without newlines that is going to eat all the RAM. It would be wise to do a few KB at a time in a buffer.

https://github.com/uutils/coreutils/blob/master/src/uu/wc/src/count_fast.rs#L31 has the boilerplate tuned for Linux system calls.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions