GitLab steht wegen Wartungsarbeiten am Montag, den 10. Mai, zwischen 17:00 und 19:00 Uhr nicht zur Verfügung.

Commit a85fd76f authored by Douwe Maan's avatar Douwe Maan

Merge branch 'id-get-blobs-performance' into 'master'

Memoize old_blob and new_blob to improve performance

See merge request gitlab-org/gitlab-ce!26604
parents b8e9a379 db68003e
......@@ -133,11 +133,15 @@ def old_content_sha
end
def new_blob
new_blob_lazy&.itself
strong_memoize(:new_blob) do
new_blob_lazy&.itself
end
end
def old_blob
old_blob_lazy&.itself
strong_memoize(:old_blob) do
old_blob_lazy&.itself
end
end
def new_blob_lines_between(from_line, to_line)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment