litefs
litefs copied to clipboard
Mmap the underlying file
Would it be possible to open the underlying database file with mmap for better performance or would it not be very useful since all queries need to pass through the FUSE layer anyway, which would be the bigger bottleneck?
Yeah, that's definitely a possibility. mmap() can help for databases that are smaller than memory but it can have performance issues as Go will stall if the page needs to be read from disk. I'm currently focused on correctness but it's something I'll try once I get to performance improvement.
Perfect, thanks.