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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,b30bd69fa8f63cb2 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-06-17 03:52:43 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!wn14feed!worldnet.att.net!4.24.21.153!chcgil2-snh1.gtei.net!news.bbnplanet.com!chcgil2-snf1.gtei.net!news.gtei.net!news.binc.net!kilgallen From: Kilgallen@SpamCop.net (Larry Kilgallen) Newsgroups: comp.lang.ada Subject: Re: Replacement for Text_IO? (was Re: C bug of the day) Date: 17 Jun 2003 05:52:38 -0500 Organization: Berbee Information Networks Corporation Message-ID: References: <1054751321.434656@master.nyc.kbcfp.com> <20030611114948.00000bcc._elh_@_terma_._com_> <20030611125000.000018b5._elh_@_terma_._com_> In article , Dale Stanbrough writes: > Gautier Write-only wrote: > >> Dale Stanbrough: >> >> > Everyone laments the slowness of Text_IO, >> >> Who ? Who ? > > Are you an owl? I'm sure one "who?" would do. > > Ok, it was a bit of hyperbole. -I- don't like the slowness of Text_IO :-) Could that be due to your compiler and operating system ? The record-oriented nature of Text_IO seems to match nicely the features of RMS on VMS. Personally the only Ada compiler from which I have used it is VAX/DEC/Compaq Ada. > "Text_IO is convenient for small scale or occasional use for small > amounts of formatted output (compare it to ACCEPT and DISPLAY use > in COBOL). It is not the appropriate interface for large scale I/O > where performance is critical." > Why not -make- it suitable for large scale I/O? Why not ensure that > everyone who wants to do some I/O doesn't have the thought in the > back of their head "shouldn't really use text_io because it doesn't > scale". Really large scale IO should not use a line-oriented package. In fact even $QIO is inadequate and one should use $IO_PERFORM, which requires at least ASTs for efficiency and might require Ada tasking. So some solution which works for one operating system would not work for others. So your particular situation might require better performance, but how much better and how to achieve it is going to be quite OS-specific.