Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

What about domain sockets?

It's clumsier, to be sure, but if performance is your goal, the socket should be faster.



It looks like FFmpeg does support reading from sockets natively[1], I didn't know that. That might be a better solution in this case, I'll have to look into some C code for writing my output to a socket to try that some time.

[1] https://ffmpeg.org/ffmpeg-protocols.html#unix


Why should sockets be faster?


Sockets remap pages without moving any data while pipes have to copy the data between fds.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: