You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are currently rebuilding the HTML for the suggestions list every time it's updated, which means (at minimum):
sorting the list
creating the HTML for every suggestion
binding the event handlers for every suggestion
dealing with hierarchy / existing selected tags
It seems like there are some decent performance gains to be had here - we could definitely look at at least caching the objects in memory so that we can re-insert them to the DOM faster. Another option is always leaving all suggestions in the DOM, but manipulating which are shown / not shown / not selectable.
The text was updated successfully, but these errors were encountered:
benbasson
changed the title
Cache HTML suggestions
Cache HTML suggestions / improve suggestion loading performance
Aug 25, 2014
We are currently rebuilding the HTML for the suggestions list every time it's updated, which means (at minimum):
It seems like there are some decent performance gains to be had here - we could definitely look at at least caching the objects in memory so that we can re-insert them to the DOM faster. Another option is always leaving all suggestions in the DOM, but manipulating which are shown / not shown / not selectable.
The text was updated successfully, but these errors were encountered: