samvera / iiif_manifest

Other
10 stars 10 forks source link

Memoize to avoid duplicate fetching/building of content #106

Closed cjcolvar closed 8 months ago

cjcolvar commented 8 months ago

Memoizing avoid duplicate fetching of these values which can be expensive especially with a large number of canvases. In particular these are called multiple times in #initialize in apply_record_properties and then again in attach_* and their guard clauses.