mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 17:10:23 +00:00
b9dca3300e
Instead of just having a giant KBuffer that is not resizeable easily, we use multiple AnonymousVMObjects in one Vector to store them. The idea is to not have to do giant memcpy or memset each time we need to allocate or de-allocate memory for TmpFS inodes, but instead, we can allocate only the desired block range when trying to write to it. Therefore, it is also possible to have data holes in the inode content in case of skipping an entire set of one data block or more when writing to the inode content, thus, making memory usage much more efficient. To ensure we don't run out of virtual memory range, don't allocate a Region in advance to each TmpFSInode, but instead try to allocate a Region on IO operation, and then use that Region to map the VMObjects in IO loop. |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
TestAbort.cpp | ||
TestAssert.cpp | ||
TestCType.cpp | ||
TestIo.cpp | ||
TestLibCDirEnt.cpp | ||
TestLibCExec.cpp | ||
TestLibCInodeWatcher.cpp | ||
TestLibCMkTemp.cpp | ||
TestLibCSetjmp.cpp | ||
TestLibCString.cpp | ||
TestLibCTime.cpp | ||
TestMalloc.cpp | ||
TestMath.cpp | ||
TestMemalign.cpp | ||
TestMemmem.cpp | ||
TestMkDir.cpp | ||
TestPthreadCancel.cpp | ||
TestPthreadCleanup.cpp | ||
TestPthreadRWLocks.cpp | ||
TestPthreadSpinLocks.cpp | ||
TestQsort.cpp | ||
TestRaise.cpp | ||
TestRealpath.cpp | ||
TestScanf.cpp | ||
TestSearch.cpp | ||
TestSnprintf.cpp | ||
TestStackSmash.cpp | ||
TestStdio.cpp | ||
TestStrlcpy.cpp | ||
TestStrtodAccuracy.cpp | ||
TestWchar.cpp | ||
TestWctype.cpp |