Skip to content

Lazily load LiteBlob#data

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