Skip to content

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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