Re: Fast access git-rev-list output: some OS knowledge required
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Dec 7, 2006, 14:53 UTC
- Message-ID
- <Pine.LNX.4.63.0612071553090.28348@wbgn013.biozentrum.uni-wuerzburg.de>
- In-Reply-To
- <45781639.1050208@op5.se>
Hi,
On Thu, 7 Dec 2006, Andreas Ericsson wrote:
Show 12 quoted lines
> 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).
Could somebody remind me why different processes are needed? I thought that the revision machinery should be used directly, by linking to libgit.a...
Ciao, Dscho