Soften memory pressure

This commit is contained in:
Vicent Marti
2015-09-04 10:24:06 +02:00
parent bdd57f58a0
commit b275b5d728
4 changed files with 17 additions and 5 deletions

View File

@@ -157,8 +157,11 @@ module Linguist
blob = Linguist::LazyBlob.new(repository, delta.new_file[:oid], new, mode.to_s(8))
next unless blob.include_in_language_stats?
file_map[new] = [blob.language.group.name, blob.size]
if blob.include_in_language_stats?
file_map[new] = [blob.language.group.name, blob.size]
end
blob.cleanup!
end
end