Skip to content

Add iterators in addition to GitDiff::Diff#files and GitDiff::File#hunks #7

Open
@dadooda

Description

@dadooda

Hi Andrew,

At the moment methods like GitDiff::Diff#files and GitDiff::File#hunks return pre-filled Arrays, which isn't that optimal if you deal with big input data. I think adding iterators like #each_file, #each_hunk etc. would make it a lot more optimal performance-wise and memory-wise.

Cheers.

Alex

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions