Pipe vs. Temporary File

Viewed 15513

Is there a big performance difference between:

  • Process A writing to a temp file, and process B reading that file
  • Process A writing to a pipe, and process B reading from that pipe

I'm curious to know what the answer is for both Windows and *nix.

EDIT: I should have asked: Does the buffer cache eliminate the difference between a temp file and a pipe?

4 Answers
Related