From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: File output and buffering
Date: Wed, 20 Aug 2008 11:21:48 +0200
Date: 2008-08-20T11:21:49+02:00 [thread overview]
Message-ID: <zygqo0yqaii4$.7mqs6h5m06we$.dlg@40tude.net> (raw)
In-Reply-To: b3f16c6a-742c-43c3-baec-9533db25e423@r66g2000hsg.googlegroups.com
On Wed, 20 Aug 2008 01:59:52 -0700 (PDT), Maciej Sobczak wrote:
> On 20 Sie, 10:43, Maciej Sobczak <see.my.homep...@gmail.com> wrote:
>
> Still valid question:
>
>> 3. Why is buffered Ada.Text_IO as slow as non-buffered C's stdio? Who
>> is eating the 20x factor?
Because of page formatting, I suggest. You can use text streams instead.
[But don't use String'Write! Although, the newest GNAT optimized that,
AFAIK.]
BTW, buffering does not make I/O faster. It obviously does the opposite.
Certainly, you didn't mean the "last-mile" buffer held by the driver, which
is usually inaccessible. In some elder OSes you could directly write from a
user buffer mapped by the kernel, have record files etc. That was *fast*.
But then came C, Unix and Co., you know... (:-))
--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de
next prev parent reply other threads:[~2008-08-20 9:21 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-19 20:27 File output and buffering Maciej Sobczak
2008-08-20 6:45 ` Georg Bauhaus
2008-08-20 8:43 ` Maciej Sobczak
2008-08-20 8:59 ` Maciej Sobczak
2008-08-20 9:21 ` Dmitry A. Kazakov [this message]
2008-08-20 14:44 ` Maciej Sobczak
2008-08-20 15:39 ` Dmitry A. Kazakov
2008-08-21 7:10 ` Maciej Sobczak
2008-08-21 9:24 ` Dmitry A. Kazakov
2008-08-21 20:54 ` Maciej Sobczak
2008-08-21 21:27 ` Dmitry A. Kazakov
2008-08-22 11:53 ` Maciej Sobczak
2008-08-22 13:22 ` Dmitry A. Kazakov
2008-08-22 21:41 ` Maciej Sobczak
2008-08-23 10:25 ` Dmitry A. Kazakov
2008-08-23 13:41 ` Steve
2008-08-23 14:33 ` Dmitry A. Kazakov
[not found] ` <Q7adnfmCI6Ly6S3VnZ2dnUVZ_jOdnZ2d@earthlink.com>
2008-08-23 22:00 ` Maciej Sobczak
2008-08-20 13:19 ` Georg Bauhaus
2008-08-20 14:41 ` Maciej Sobczak
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox