SerCeMan / jnr-fuse

FUSE implementation in Java using Java Native Runtime (JNR)
MIT License
367 stars 87 forks source link

Fix MemoryFS performance issue with big files #180

Open gyurix opened 10 months ago

gyurix commented 10 months ago

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.