> No, not CPU intensive, but I imagine it has some cost for a large backup, > since the program must wait until printing each line is finished before > proceeding, no?
I could be wrong but AFAIK the only restriction is that your write() needs to return. Assuming some OS buffering, that's effectively an asynchronous write. Or is this special cased for terminal devices somehow? I would presume not or most things emitting data for consumption over an ssh connection would be extremely slow... So if it's special cased, then empirically, it would have to be for local terminals only or something along those lines. -- / Peter Schuller (@scode, http://worldmodscode.wordpress.com)
