Skip to content

update: improve performances

Matthieu Fesselier requested to merge update/improve-performances into dev

@balessan @clement I applied what we talked about during our last call about performances. Here is what I did:

  • use lit-html to render solid-display containers (create a template for each child, render the whole content once at the end)
  • add a helper for lit-html (because unable to import it properly from a CDN) which allows to give an object of attributes to apply to an element
  • in all the list post-processors, use resources as an array and not an AsyncIterator. If we still have some asynchronous tasks, given the fact that we sometimes need to access some properties of the resources, we can now avoid using for await
  • remove some unnecessary await before resource.isContainer()

All the tests are ok, I let you try it and comment if you have some feedbacks

Merge request reports