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: a07f3367d7,c689b55786a9f2bd X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!news4.google.com!feeder2.cambriumusenet.nl!feed.tweaknews.nl!138.195.8.3.MISMATCH!news.ecp.fr!news2.arglkargh.de!newsfeed.straub-nv.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: for S'Image use Func?? Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <4be417b4$0$6992$9b4e6d93@newsspool4.arcor-online.net> <1qcb6z4i20dyb.1dz2hd4c0vx69.dlg@40tude.net> <87632vwikr.fsf@ludovic-brenta.org> <112n6z3554srr$.tjzjtg467xfo.dlg@40tude.net> Date: Tue, 11 May 2010 19:15:07 +0200 Message-ID: <1utg4wrqqbcjl.nh1w8haywq4p$.dlg@40tude.net> NNTP-Posting-Date: 11 May 2010 19:15:05 CEST NNTP-Posting-Host: 0d10e0b5.newsspool2.arcor-online.net X-Trace: DXC=@ZMJB:6ofGD2:OR3:3gaE@A9EHlD;3YcB4Fo<]lROoRA8kF On Tue, 11 May 2010 17:56:44 +0200, Yannick Duch�ne (Hibou57) wrote: > Le Tue, 11 May 2010 10:35:24 +0200, Dmitry A. Kazakov > a �crit: > >> On Mon, 10 May 2010 23:30:28 +0200, Ludovic Brenta wrote: >> >>> Maciej Sobczak writes: >>>> Coming back to I/O - what I miss in Ada is the equivalent of fread in >>>> C - that is, an operation that reads *up to* the given number of >>>> bytes. Or maybe there is something that I didn't notice? Such an >>>> operation is an important basis for custom buffered input. >> >> It is a basis for creating inefficient time and space consuming programs. >> But we had this discussion before. > Can you tell more please ? Buffering = making copies. A copy is always an overhead. It pays off if you have asynchronous components (use them in parallel), or components with high switching overhead, or faster memory (caching, indexing etc). If you don't have that it is just a loss. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de