You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The write() implementation for in-memory files used by the TmpFs /
mem_fs was terrible: it used to re-allocate and copy the whole data if
the write position was not at the end of the file.
This re-writes the implementation to grow the buffer in place if
required.
Also adds some tests.
Closes#3903
The write() implementation for in-memory files used by the TmpFs /
mem_fs was terrible: it used to re-allocate and copy the whole data if
the write position was not at the end of the file.
This re-writes the implementation to grow the buffer in place if
required.
Also adds some tests.
Closes#3903
The write() implementation for in-memory files used by the TmpFs /
mem_fs was terrible: it used to re-allocate and copy the whole data if
the write position was not at the end of the file.
This re-writes the implementation to grow the buffer in place if
required.
Also adds some tests.
Closes#3903
Currently writing to somewhere else than the end of a file always allocates a new buffer in the mem fs.
That will have ... horrible performance.
Need to fix this.
This is bad enough to call it a bug.
wasmer/lib/virtual-fs/src/mem_fs/file.rs
Lines 1323 to 1327 in 458330e
The text was updated successfully, but these errors were encountered: