These are chat archives for UniversalViewer/universalviewer
hi @jeffreycwitt have you thought about paging search results?
This would limit the size of the array you need to loop over.
also, you could try "caching" the annotations within the hits by replacing the annotation ids with references to the annotation objects after lookup. this is something I do a lot with jquery for example, do the lookup once with a selector, then cache the result in a var for reuse. not sure how much they will need to be reused, but possibly a worthwhile optimisation.
I was pretty tired yesterday, had time to sleep on it :-)