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,1769ac558c6fa259 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-02-21 09:56:04 PST Newsgroups: comp.lang.ada Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeeds.belnet.be!news.belnet.be!newsfeed.online.be!zur.uu.net!ash.uu.net!xyzzy!nntp From: Jeffrey Carter Subject: Re: How to speed up stream & record handling? X-Nntp-Posting-Host: e246420.msc.az.boeing.com Content-Type: text/plain; charset=us-ascii Message-ID: <3C752FAF.E181539A@boeing.com> Sender: nntp@news.boeing.com (Boeing NNTP News Access) Content-Transfer-Encoding: 7bit Organization: The Boeing Company X-Accept-Language: en References: Mime-Version: 1.0 Date: Thu, 21 Feb 2002 17:34:39 GMT X-Mailer: Mozilla 4.73 [en]C-CCK-MCD Boeing Kit (WinNT; U) Xref: archiver1.google.com comp.lang.ada:20220 Date: 2002-02-21T17:34:39+00:00 List-Id: It would be useful to know how fast you can read 20 MB in 200 byte groups without any user-defined reads. It would also help to know what optimization level you compiled with. By default (-O0), GNAT produces completely unoptimized code. You need to use -O1 just to get the equivalent of "no optimization" with most other compilers. Since you need fast code, -O3 is probably a good idea. Other than that, the only thing I can see is that Swap is very general. Making it specific to a 2-byte array (a simple exchange) and inlining it might speed things up a bit. If it's still not fast enough, you might try suppressing all run-time checks. -- Jeffrey Carter