isomorphic-git / lightning-fs

A lean and fast 'fs' for the browser
MIT License
477 stars 47 forks source link

feat: add fs.promises and make it thread-safe #9

Closed billiegoose closed 5 years ago

billiegoose commented 5 years ago

~I still need to benchmark this a little, but it looks promising.~ Nope I need to speed it up.

Before: Initial clone: 13s Second clone: 23s

After: Initial clone: 16s Second clone: 65s


OK I think we're good to go!

After debouncing locks: Initial clone: 14s Second clone: 21s

billiegoose commented 5 years ago

So the bad news is: I've found a way to break the thread-safety. :( The good news is this will force us to make the locking model even simpler to understand.

billiegoose commented 5 years ago

superceded by #19