Marco Costalba <mcostalba@gmail.com> wrote:On a modern Linux (probably your largest target audience) a small file which has a very short lifespan (few seconds) is unlikey to hit the platter. Most filesystems will put the data into buffer cache and delay writing to disk because temporary files are so common on UNIX. Though our resident Linux experts may chime in with more details... And ugly. :-) SysV IPC (shared memory, semaphores) are messy and difficult to get right. mmap against a random file in the filesystem tends to work better on those systems which support it well, provided that the file isn't on a network mount. But again you still need semaphores or something like them to control access to the data in the mmap'd region. I was thinking that maybe if Qt had a bounded buffer available for use between a process and its child, that you could use that to run your own "qgit-rev-list" child and get the data back more quickly, without the need for a temporary file. But it doesn't look like they have one. Oh well. Your current temporary file approach is probably the best you can get, and has the simplest possible implementation. Doing better would require linking against libgit.a, and getting the core Git hackers to make at least the revision machinery more useful in a library setting. -- Shawn. - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
| James Bottomley | Re: Integration of SCST in the mainstream Linux kernel |
| Greg Kroah-Hartman | [PATCH 007/196] Chinese: add translation of stable_kernel_rules.txt |
| david | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Jan Engelhardt | intel iommu (Re: -mm merge plans for 2.6.23) |
git: | |
| Alexey Dobriyan | Re: [GIT]: Networking |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| David Miller | Re: [BUG] New Kernel Bugs |
