Lace2
Lace2 copied to clipboard
simplify code for presenting list of available image sets
This is a 5x speedup:
for $imageset in //lace:imagecollection
let $text := $imageset/dc:identifier
order by $imageset/dc:creator[0]
return
if (exists(//lace:run[dc:identifier = $text]))
then
<yes>{$text}</yes>
else
<no>{$text}</no>
fix also app:countCatalog and app:get-lace-version
in general, check for 'collection('/db/apps')' because this is something that really drags things down.