isomorphic-git / isomorphic-git/lightning-fs
feat: add native 'exists' implementation
Open
- Dominant language
- JavaScript
- Stars
- 610
- Forks
- 62
- Avg merge
- 14h 47m
- Merged PRs (30d)
- 1
Description
> In theory, a native implementation of `exists` that doesn't throw an Error and immediately catch it might be ever-so-slightly faster. Not sure what the overhead of creating an Error object is... it _can_ be "expensive" because it creates a stack trace - although I think most browsers compute the stack trace only if needed nowadays. Hmm.
_Originally posted by @wmhilton in https://github.com/isomorphic-git/lightning-fs/issues/21#issuecomment-519230529_
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.