aboutsummaryrefslogtreecommitdiff
path: root/src/library_memfs.js
AgeCommit message (Collapse)Author
2014-06-11fix bug introduced in 92cab32f5f where we ignore the current offset in a ↵Alon Zakai
file when writing initial data to it
2014-06-06Simplify typed array creation code in MEMFS.Jukka Jylänki
2014-06-05Fix MEMFS.getFileDataAsTypedArray to be strict and not return unused ↵Jukka Jylänki
capacity padding bytes.
2014-06-05Convert MEMFS files to typed arrays before storing to IDBFS for better IDBFS ↵Jukka Jylänki
performance. Add testing for -s MEMFS_APPEND_TO_TYPED_ARRAYS=1 option.
2014-06-05Use typed arrays instead of normal JS arrays to back files in the MEMFS ↵Jukka Jylänki
filesystem for improved performance, especially when backing to IDBFS.
2014-02-20strict fix: Can't use octal constants.Bruce Mitchener
2014-02-20strict fix: Duplicate key in object literal.Bruce Mitchener
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