CDRH / orchid

Rails Engine for site integration with CDRH API
MIT License
3 stars 0 forks source link

Facet slowness #282

Open wkdewey opened 1 year ago

wkdewey commented 1 year ago

With the new changes, app/views/items/_facets.html.erb is rendering much slower. Something about the changes to that view is making performance worse.

wkdewey commented 1 year ago

One cause may be the new facet methods that sanitize all the links. Although, I'm not sure how much difference this makes, it's a few tenths of a second at most.

wkdewey commented 1 year ago

Since we've identified other causes of slowness and there are security reasons to sanitize links, might just leave this be (unless we can figure out another way to improve performance).