Firefox OS/MappedArrayBuffer: Difference between revisions

Jump to navigation Jump to search
m
Line 108: Line 108:
* '''Can we write to a memory-mapped array buffer?'''
* '''Can we write to a memory-mapped array buffer?'''
: The array buffer is mapped as copy-on-write by private mapping.  If you write to a memory-mapped array buffer, it's not visible to other processes mapping the same file, and the updates are not carried through to the underlying file.  However, you should avoid that because it introduces heap memory allocation when writing to the address of each page in the virtual address space.
: The array buffer is mapped as copy-on-write by private mapping.  If you write to a memory-mapped array buffer, it's not visible to other processes mapping the same file, and the updates are not carried through to the underlying file.  However, you should avoid that because it introduces heap memory allocation when writing to the address of each page in the virtual address space.
[[File:Arraybuffer mapping.png|640px]]


* '''Is it possible to apply memory-mapped array buffer on blobs coming from IndexedDB?'''
* '''Is it possible to apply memory-mapped array buffer on blobs coming from IndexedDB?'''
: Yes, there is a follow up at https://bugzilla.mozilla.org/show_bug.cgi?id=988815
: Yes, there is a follow up at https://bugzilla.mozilla.org/show_bug.cgi?id=988815
148

edits

Navigation menu