From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,68494635acddb77e X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news2.google.com!news.glorb.com!feeder.erje.net!newsfeed.straub-nv.de!noris.net!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: File output and buffering Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <60a35fd4-e5a6-4aa0-a73f-6815ce7e92fc@f36g2000hsa.googlegroups.com> <4af2f934-7458-4370-b325-c38e3a4068b8@s50g2000hsb.googlegroups.com> Date: Wed, 20 Aug 2008 17:39:12 +0200 Message-ID: <1jt8nguvzf1hw$.189glcey6hmht.dlg@40tude.net> NNTP-Posting-Date: 20 Aug 2008 17:39:14 CEST NNTP-Posting-Host: 608447ff.newsspool4.arcor-online.net X-Trace: DXC=?WHhBe8dhn[cHPTNZh_e7Q4IUK\BH3YRh7H05S60GmPDNcfSJ;bb[UIRnRBaCd On Wed, 20 Aug 2008 07:44:48 -0700 (PDT), Maciej Sobczak wrote: > On 20 Sie, 11:21, "Dmitry A. Kazakov" > wrote: > >> BTW, buffering does not make I/O faster. It obviously does the opposite. > > You must be using some strange timer or a specially distorted > definition of I/O. > > Buffering allows to minimize the overhead that is there per each > physical output operation. Buffering is used to make I/O in an asynchronous and/or conveyered way. That does not make I/O faster in terms of latencies. Any language buffer on top of numerous layered buffers, typical for an OS, adds nothing, but overhead. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de