These are chat archives for UniversalViewer/universalviewer

Nov 2015
Edward Silverton
Nov 01 2015 08:24

hi @jeffreycwitt have you thought about paging search results?


This would limit the size of the array you need to loop over.

happy belated halloween too :-)
Edward Silverton
Nov 01 2015 08:31

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 :-)