FoundryVTT-Sequencer icon indicating copy to clipboard operation
FoundryVTT-Sequencer copied to clipboard

Compendium.getDocuments() is extremely slow, considering using Compendium.getIndex() instead

Open tradiuz opened this issue 1 year ago • 0 comments

https://github.com/fantasycalendar/FoundryVTT-Sequencer/blob/7b9799aa4453c937048497d7a7a0d0643e57fe67/src/modules/sequencer.js#L165

getDocuments() pulls the contents of the documents which means loading a lot of unnecessary data vs leveraging the index when searching for the name.

tradiuz avatar Sep 06 '24 16:09 tradiuz