mrmlnc / fast-glob

:rocket: It's a very fast and efficient glob library for Node.js
MIT License
2.51k stars 108 forks source link

ISSUE-314: optimize package require time #428

Closed mrmlnc closed 10 months ago

mrmlnc commented 10 months ago

What is the purpose of this pull request?

Optimizing package import time on a cold environment. Related to #314.

What changes did you make? (Give an overview)

Label             import.time (time)
----------------  ------------------
async current *   11.091ms ±0.622% 
async previous *  25.361ms ±3.364%
async fdir *      13.296ms ±6.433% 
async node-glob * 17.366ms ±7.149%