Reduce allocations from computing item property (#8485)
Merge pull request 8485
This commit is contained in:
parent
68497a4d4b
commit
573b431abb
|
@ -422,7 +422,7 @@ module Jekyll
|
|||
end
|
||||
|
||||
def item_property(item, property)
|
||||
@item_property_cache ||= {}
|
||||
@item_property_cache ||= @context.registers[:site].filter_cache[:item_property] ||= {}
|
||||
@item_property_cache[property] ||= {}
|
||||
@item_property_cache[property][item] ||= begin
|
||||
property = property.to_s
|
||||
|
|
Loading…
Reference in New Issue