yaqwsx / jlcparts

Better parametric search for components available for JLC PCB assembly
https://yaqwsx.github.io/jlcparts/
MIT License
572 stars 52 forks source link

Filter and sort by chunks to not block UI thread #3

Closed yaqwsx closed 3 years ago

yaqwsx commented 4 years ago

Sorting and filtering are quite fast. However, there few cases (e.g., when a whole library is selected) where it takes a couple of hundreds milliseconds to perform it and UI freezes. Consider splitting the work in chunks and schedule them via setTimeout(fn, 0);

yaqwsx commented 3 years ago

Implemented in fb60c24