From: Marco Costalba Date: Fri, 08 Dec 2006 18:34:44 GMT Subject: Re: Fast access git-rev-list output: some OS knowledge required Message-ID: In-Reply-To: <45781639.1050208@op5.se> On 12/7/06, Andreas Ericsson wrote: > Shawn Pearce wrote: > > > > Perhaps there is some fast IPC API supported by Qt that you could > > use to run the revision listing outside of the main UI process, > > to eliminate the bottlenecks you are seeing and remove the problems > > noted above? One that doesn't involve reading from a pipe I mean... > > > > Why not just fork() + exec() and read from the filedescriptor? You can > up the output buffer of the forked program to something suitable, which > means the OS will cache it for you until you copy it to a buffer in qgit > (i.e., read from the descriptor). > Please, what do you mean with "something suitable"? How can I redirect the output to a memory buffer or to a file that the OS will cache *until* I've copied it? If I redirect to a 'normal' file, this will be flushed by OS after some time, normally few seconds. Could you please post links with examples/docs about this kind of implementation? Thanks