This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: A sick idea - mmapped file output
- To: torvalds at transmeta dot com
- Subject: Re: A sick idea - mmapped file output
- From: Nick Ing-Simmons <nik at tiuk dot ti dot com>
- Date: Mon, 6 Nov 2000 14:01:05 GMT
- Cc: gcc at gcc dot gnu dot org, zackw at stanford dot edu
- Organization: via, but not speaking for : Texas Instruments Ltd.
- References: <20001102214053.G322@wolery.stanford.edu> <200011040202.SAA04519@penguin.transmeta.com>
- Reply-To: Nick Ing-Simmons <nik at tiuk dot ti dot com>
Linus Torvalds <torvalds@transmeta.com> writes:
>
>Comparing the mmap() with a stdio-based approach is unfair. You should
>at least try with direct write() calls. If the common case is _really_
>short writes, you could go half-way, with a really simple buffering
>scheme rather than stdio (expose the buffer or similar).
My experiments reading/wring huge netlist files for work showed best
performance was mmap() for reading and write() of "large" chunks
for writing.
--
Nick Ing-Simmons <nik@tiuk.ti.com>
Via, but not speaking for: Texas Instruments Ltd.