3 ms·
Calling stat on all the files is just really expensive if your directly is large.
by heinrichhartman 6y ago
Calling stat on all the files is just really expensive if your directly is large.
- networkimprov 6y agoSee the Reddit for an alternative to FileInfo. https://www.reddit.com/r/golang/comments/hv976o/qa_iofs_draft_design/ https://www.reddit.com/r/golang/comments/hv976o/qa_iofs_draf...
- tptacek 6y agoFileInfo is an interface, isn't it? You could populate fields other than "name" lazily, right?