On Monday 11 December 2006 19:59, Marco Costalba wrote:Hi, I just looked at the QProcess implementation in Qt 3.3.6, as I was curious. Qt does a big select() call in the event loop. If there is data available from the child process, it is reading in chunks of a maximum of 4096 bytes, with a select() call inbetween to see if there is still data available. After every read, the read data is concatenated into the read buffer. For the slow/cold cache case, this probably is the best *if* the consumer application can act as fast as possible when data is sent. Which makes it a good fit to avoid --topo-order and do some redrawing of the graph yourself if needed. For sure, this gives the fastest visual appeareance. You could start filling the list after e.g. 30 revs are read. Obviously, there is some possibility for improvement _when_ you know that you want to read in large amounts of data in big chunks, given that QProcess uses at least two system calls every 4 kB. A general question: How many context switches are involved in such a producer/consumer scenario, given that the consumer writes one line at a time, and the consumer uses poll/select to wait for the data? Is there some possibility to make the kernel write-combine single small producer writes into bigger chunks, which will be delivered at once (or smaller data only after a small timeout)? Josef - 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
| Greg Kroah-Hartman | [PATCH 005/196] Chinese: add translation of SubmittingDrivers |
| Eduard - Gabriel Munteanu | [PATCH 0/5] kmemtrace |
| Greg KH | Re: [malware-list] [RFC 0/5] [TALPA] Intro to a linux interface for on access scan... |
| Borislav Petkov | [PATCH 00/18] misc generic ide stuff |
git: | |
| Jon Smirl | Something is broken in repack |
| Thomas Glanzmann | fatal: serious inflate inconsistency |
| Wink Saville | git-svn segmetation fault |
| Petko Manolov | git and binary files |
| Paul Moore | [RFC PATCH v4 00/14] Labeled networking patches for 2.6.28 |
| David Fries | [PATCH] ne.c fix for hibernate and rmmod oops fix |
| Jeff Kirsher | [PATCH 1/3] e1000e: add support for the 82567LM-4 device |
| Andrew Morton | Re: [BUG] New Kernel Bugs |
| Jim Winstead Jr. | Re: Root Disk/Book Disk Compatibility |
| Bill Day | telnet: Unable to connect to remote host: Network is unreachable |
| Doug Evans | Re: Stabilizing Linux |
| Nhut Nguyen | [Query] Trying to locate BOOTACT. |
| Soft lock bug | 2 hours ago | Linux kernel |
| kernel module to intercept socket creation | 8 hours ago | Linux kernel |
| sysctl - dynamic registration problem | 8 hours ago | Linux kernel |
| Question on swap as ramdisk partition | 10 hours ago | Linux kernel |
| serial driver xmit problem | 15 hours ago | Linux kernel |
| Generic Netlink subsytem | 16 hours ago | Linux kernel |
| 'Report spam filter error' page broken | 18 hours ago | KernelTrap Suggestions and Feedback |
| Netfilter kernel module | 1 day ago | Linux kernel |
| Why Windows is better than Linux | 1 day ago | Linux general |
| How can I see my kernel messages in vt12? | 1 day ago | Linux kernel |
