On 12/11/06, Josef Weidendorfer <Josef.Weidendorfer@gmx.de> wrote:IOW you suggest to use a brute force polling of the pipe. I'will try this, just to test the pipe, not the application because I would really need to read data in big chunks. Data read from pipe/file or something else is read in an array (char* []) and do not touched anymore, no more copies are made. For every read a new array is allocated on the heap. With chunks of 64KB, because each rev descriptions is about few hundered bytes only few revs (about 1% with current linux tree) fall at the boundary of the chunk, half in one and the rest in the next. This boundary revs require a special handling that at the end involves an additional copy. If I get from the pipe very small data (few KB) probably it would be better to read always in a local array of fixed size and then copy to final destination in memory. But this imply that all the data work copy is duplicated: instead of 30MB of data we'll going to move 60MB (linux tree) With big chunks of 64KB only about 1% of data (revs that fall at the array boundary) is duplicated. Marco - 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
| Linus Torvalds | Linux 2.6.27-rc5 |
| Ingo Molnar | [patch 00/13] Syslets, "Threadlets", generic AIO support, v3 |
| Chris Snook | [PATCH 0/24] make atomic_read() behave consistently across all architectures |
| Greg Kroah-Hartman | [PATCH 005/196] Chinese: add translation of SubmittingDrivers |
| Marcel Holtmann | Bluetooth fixes for 2.6.27 |
| Evgeniy Polyakov | [resend take 2 0/4] Distributed storage. |
| Andrew Morton | Re: [Bugme-new] [Bug 9721] New: wake on lan fails with sky2 module |
| David Miller | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
git: | |
| Ping Yin | [RFC] git reset --recover |
| Wink Saville | Resolving conflicts |
| Ping Yin | [PATCH 0/7] submodule: fallback to .gitmodules and multiple level module definition |
| Linus Torvalds | Re: git pull for update of netdev fails. |
| Richard Stallman | Real men don't attack straw men |
| Karel Kulhavy | lookup option in /etc/resolv.conf ignored |
| Stefan Beke | mail dovecot: pipe() failed: Too many open files |
| Will | fsck large filesystem, memory limit problem |
| Soft lock bug | 3 hours ago | Linux kernel |
| kernel module to intercept socket creation | 9 hours ago | Linux kernel |
| sysctl - dynamic registration problem | 10 hours ago | Linux kernel |
| Question on swap as ramdisk partition | 12 hours ago | Linux kernel |
| serial driver xmit problem | 17 hours ago | Linux kernel |
| Generic Netlink subsytem | 17 hours ago | Linux kernel |
| 'Report spam filter error' page broken | 19 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 |
