Skip to content
Snippets Groups Projects

Lazily load LiteBlob#data

2 unresolved threads

Some operations, notably Repository#delete_blob, don't need access to the blob content. Loading it from disc in these cases is unnecessary.

This commit lazily loads the content on first access and memoizes it. If it is never accessed, it will never be loaded.

This should reduce disc access significantly for commits that delete lots of files.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • @nick.thomas Specs are red

  • Nick Thomas added 1 commit

    added 1 commit

    Compare with previous version

  • Author Maintainer

    Whoops! Fixed ^^

  • assigned to @vsizov

  • Thanks, LGTM

  • Valery Sizov mentioned in commit 24982017

    mentioned in commit 24982017

  • merged

  • Please register or sign in to reply
    Loading