I tried to copy a big file to the MemoryFs, and realized it's incredible slow. After some investigation I found out that this line of code copies the whole file every single time some bytes gets appended to it, making the writing process slower and slower the bigger the file gets. After this fix I measured over 50-100x performance increase with a 1GB file.
I tried to copy a big file to the MemoryFs, and realized it's incredible slow. After some investigation I found out that this line of code copies the whole file every single time some bytes gets appended to it, making the writing process slower and slower the bigger the file gets. After this fix I measured over 50-100x performance increase with a 1GB file.