Forums » Development »
Pipe mode
Added by Yann Collet 496 days ago
btw Andreas, i would be interested to support the "pipe mode" that is recommended in the documentation, because it would avoid tmp file creation, thus increasing speed for the user.
But i'm clueless on how to support this in C.
Do you have any input on this by any chance ?
Regards
Replies
RE: Pipe mode - Added by Andreas Besting 487 days ago
Sorry for the late answer, I was on holiday last week. Unfortenatly I'm not much a C programmer and haven't done this before myself. All I know is that you have to open the system's in/out streams in binary mode and use some method for pushing the bytes around.
It came to my attention that using pipes is not always guarantee for a speed increase - I've done some testing with slug and on my system (probably due to the windows file cache) using Coffeearc with tmp files seems to be as fast as directly pushing data over the streams. But I would still recommend to use streams because I think it's somewhat nicer to use less tmp files.
Good luck!
Andreas