On 9/1/2011 1:13 PM, Marco Leise wrote: > > Although splice looks promising it suffers from too many context switches. I > had the best results with direct I/O and > using synchronized writes for buffer sizes from 8 MB onwards, but I found > this to be too complex and probably system > dependent. So I settled with the memory mapped version, that I rewrote using > Phobos instead of POSIX calls, so it should > run equally well on all platforms and is 5 lines of code at it's core: > > > - Marco
mmap has an issue with files larger than the mappable address space. Not that it's hard to handle that case, it does complicate the code in ways that the other options don't have problems with.
