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.
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
inapply_record_properties
and then again inattach_*
and their guard clauses.