isomorphic-git / isomorphic-git/lightning-fs

feat: add native 'exists' implementation

Open
#22 0 comments 3 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.