Lazily load LiteBlob#data
Merged
Lazily load LiteBlob#data
2 unresolved threads
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
Activity
@nick.thomas Specs are red
assigned to @nick.thomas
assigned to @vsizov
mentioned in commit 24982017
Please register or sign in to reply