Re: Fast access git-rev-list output: some OS knowledge required
- From
Andreas Ericsson <ae@op5.se>
- Date
- Dec 7, 2006, 13:25 UTC
- Message-ID
- <45781639.1050208@op5.se>
- In-Reply-To
- <20061206195142.GE20320@spearce.org>
Shawn Pearce wrote:
Show 6 quoted lines
> > 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).
-- Andreas Ericsson andreas.ericsson@op5.se OP5 AB www.op5.se