Re: NSTask and piped commands
Re: NSTask and piped commands
- Subject: Re: NSTask and piped commands
- From: Jens Alfke <email@hidden>
- Date: Tue, 18 May 2010 15:18:46 -0700
On May 18, 2010, at 3:04 PM, René v Amerongen wrote:
> Maybe just an imagination from me, but it looks slow all that moving of results to the next task.
But that’s exactly what the shell does! The “|” operator spawns a process for each side and hooks the output of the first to the input of the second. There’s not really any copying going on — pipes are pretty fundamental to the way the Unix kernel works and are highly optimized.
—Jens_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden