A sick idea - mmapped file output

Nick Ing-Simmons nik@tiuk.ti.com
Mon Nov 6 06:01:00 GMT 2000


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.



More information about the Gcc mailing list