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,FREEMAIL_FROM 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-22 05:31:49 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: karlran1234@yahoo.com (Karl Ran) Newsgroups: comp.lang.ada Subject: Re: How to speed up stream & record handling? Date: 22 Feb 2002 05:31:47 -0800 Organization: http://groups.google.com/ Message-ID: References: <87it8qeg4q.fsf@deneb.enyo.de> <8Rfd8.41459$Cu.776895529@newssvr14.news.prodigy.com> NNTP-Posting-Host: 80.134.28.135 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1014384709 26317 127.0.0.1 (22 Feb 2002 13:31:49 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 22 Feb 2002 13:31:49 GMT Xref: archiver1.google.com comp.lang.ada:20250 Date: 2002-02-22T13:31:49+00:00 List-Id: tmoran@acm.org wrote in message news:<8Rfd8.41459$Cu.776895529@newssvr14.news.prodigy.com>... >> Data_array'Read (and thus My_Record'Read) calls Unsigned_8'Read for >> each array element individually. Perhaps this burns a lot of CPU > I suspect you're right. I ran the program as given on a 750MHz Windows > system and it took 7.7 seconds. It runs in .13 seconds with some > simple changes: Same here! So, whats the problem with the streams? Was the streams-package not designed to handle high-bandwidth application? Does the used compiler matters? How do I avoid calling 'Unsigned_8'Read' 200 times per packet while still using streams? Thanks, Karl