samvera / iiif_manifest

Other
10 stars 10 forks source link

Avoid creating canvas builders just to compute id #105

Closed cjcolvar closed 8 months ago

cjcolvar commented 8 months ago

Copy #path method from CanvasBuilder to avoid doing a lot of extra work and potential fetching of data.

CanvasBuilder#initialize does most of the work of setting up the canvas instead of in #apply so it is fairly expensive especially when doing this for hundreds of canvases.