emscripten-core / emscripten-core/emscripten

Is such a file system possible?

Open
#14,897 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
27.6k
Forks
3.6k
Avg merge
1d 1h
Merged PRs (30d)
105

Description

Currently the file systems on web are MEMFS and IDBFS and WORKERFS.

MEMFS: all files are load into memory. If the files are large, a lot of memory will be comsumed.
IDBFS: for sync between MEMFS and IndexedDB. It is just the mirror of the MEMFS
WORKERFS: Looks like the fs is managed in a worker. Not able for a multi-threaded application.

I was wondering if such a FS be possible:
1. for all files opened: load into memory
2. for all files not opened: Keep in the IDBFS and not load into memory

If it is possible the memory usage will be much less than MEMFS and we can still get the files persistent storaged.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.