Post

After four months in the making, tinyglobby 0.2.11 is out! This release adds important optimizations to avoid crawling extra directories, which should greatly improve performance in almost all cases! Here's how we did it 🧵 github.com/SuperchupuDe...

github.comRelease 0.2.11 · SuperchupuDev/tinyglobbyI've opened a sponsorships page! Consider sponsoring at https://github.com/sponsors/SuperchupuDev if you'd like to support the development of this project. This is a huge release in a technical asp...

9 reposts33 likes

While the last tinyglobby release had some optimizations in place, there were some cases in which the library could crawl the whole cwd(!). For big projects, this wasn't ideal, due to the sheer size of the node_modules folder.

Four months ago, I opened an issue detailing some aspects of how a good optimizer could look like. With the help of some friend of mine, we managed to come up with an implementation that generated extra patterns for each pattern to try and resemble the matching behavior needed

It wasn't too optimal, but it was definitely better than crawling extra dirs. After further investigating and with some help, we came up with an implementation that modified the patterns inside the optimizer to know exactly what to crawl