aboutsummaryrefslogtreecommitdiff
path: root/src/library_memfs.js
AgeCommit message (Collapse)Author
2013-11-02Add command line parameter --no-heap-copy that optimizes for small memory ↵Jukka Jylänki
footprint and fread() performance over the default behavior that copied VFS to HEAP, that is designed for mmap() performance. Adjust MEMFS node contentMode enum to reflect whether content is off the main HEAP or not. Note that this enum is not much used, so this has little effect. Add browser tests to check that fread() and mmap() work with and without --no-heap-copy.
2013-10-29put assertions in performance-sensitive code behind ASSERTIONS flagAlon Zakai
2013-10-28reuse ops objects in MEMFS.createNodeAlon Zakai
2013-10-28reuse some FS errors in places where overhead is high and stack importance ↵Alon Zakai
is low
2013-10-11Fixes bug when renaming a directory into a subdirectory.Michael Bishop
2013-09-27 - added idbfs and nodefsAnthony Pesch
- minor coding convention fixes
2013-09-17Fixes in pread()Michael J. Bishop
The bug occurs when pread() doesn't return 0 when asked to read an offset beyond its buffer. This behavior is explicitly documented at: http://pubs.opengroup.org/onlinepubs/000095399/functions/read.html > If the starting position is at or after the end-of-file, 0 > shall be returned
2013-08-27copy the entire datafile in one chunk into the heap, avoiding one malloc per ↵Alon Zakai
file, but at the cost of not being able to free them
2013-08-23do not fail when mmaping a MEMFS.CONTENT_FIXEDAlon Zakai
2013-08-23own the subarrays created by file preloading, to avoid a copyAlon Zakai
2013-08-23keep MEMFS files as typed arrays until we need them to be flexibleAlon Zakai
2013-08-13 - made FS.readdir easier to useAnthony Pesch
- tightened up exported node and stream ops for each type
2013-08-09 - merged FS and VFS namespacesAnthony Pesch
- split off fs, memfs, sockfs and tty libraries