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,CP1252 X-Google-Thread: 103376,f3437064e1091fec X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-07-15 17:07:42 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!arclight.uoregon.edu!wn13feed!worldnet.att.net!204.127.198.203!attbi_feed3!attbi.com!rwcrnsc53.POSTED!not-for-mail Message-ID: <3F14974C.1090308@attbi.com> From: "Robert I. Eachus" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.2) Gecko/20021120 Netscape/7.01 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: What evil would happen? References: <5ad0dd8a.0307111151.4a08f95a@posting.google.com> <3F0F2B68.2060900@attbi.com> <5ad0dd8a.0307120438.6aac89b5@posting.google.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit NNTP-Posting-Host: 66.31.71.243 X-Complaints-To: abuse@comcast.net X-Trace: rwcrnsc53 1058314061 66.31.71.243 (Wed, 16 Jul 2003 00:07:41 GMT) NNTP-Posting-Date: Wed, 16 Jul 2003 00:07:41 GMT Organization: Comcast Online Date: Wed, 16 Jul 2003 00:07:42 GMT Xref: archiver1.google.com comp.lang.ada:40314 Date: 2003-07-16T00:07:42+00:00 List-Id: Wojtek Narczynski wrote: > I have a lot of those logfiles so I wanted it to be fast => tried to > stick with fixed strings and no exceptions. Indeed I may be trying to > optimize something that is not slow... The usual is to start out using Ada.Strings.Unbounded, then IF you run into time issues, try instantiating Ada.Strings.Bounded for a reasonable size, or sizes. Of course, the rapid increase in computer speeds means that we could probably drop Ada.Strings.Bounded and Ada.Strings.Fixed from Ada0Y. (But we won't.) It seems that today any case where you want to use these types involves disk I/O, and with modern processors, it is hard to get even 30% processor utilization when processing a disk file. -- Robert I. Eachus �In an ally, considerations of house, clan, planet, race are insignificant beside two prime questions, which are: 1. Can he shoot? 2. Will he aim at your enemy?� -- from the Laiden novels by Sharon Lee and Steve Miller.