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,f6f130eea077b8f8 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-05-24 07:53:22 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!newsfeed2.earthlink.net!newsfeed.earthlink.net!wn14feed!worldnet.att.net!216.166.71.14!border3.nntp.aus1.giganews.com!nntp.giganews.com!nntp3.aus1.giganews.com!nntp.clear.net.nz!news.clear.net.nz.POSTED!not-for-mail NNTP-Posting-Date: Sat, 24 May 2003 09:53:21 -0500 From: Craig Carey Newsgroups: comp.lang.ada Subject: Re: 'Write attribute vs Write procedure. Date: Sun, 25 May 2003 02:11:55 +1200 Message-ID: <8guucvo69a14asq068nl75cthev9degr2c@4ax.com> References: X-Newsreader: Forte Agent 1.92/32.572 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Organization: Customer of Mercury Telecommunications Ltd Cache-Post-Path: drone5.qsi.net.nz!unknown@tnt1-601.quicksilver.net.nz X-Cache: nntpcache 2.4.0b5 (see http://www.nntpcache.org/) X-Original-NNTP-Posting-Host: drone5-svc-skyt.qsi.net.nz X-Original-Trace: 25 May 2003 02:11:52 +1200, drone5-svc-skyt.qsi.net.nz NNTP-Posting-Host: 203.97.37.6 X-Trace: sv3-5LgV+qe9n5FfCkI45ggQzr1cLYA/pCtvAQPT0TYS9ljQ4cE4SdhgvbvBcIef7OWTJOimUg2i5baE9EM!Q5zj4WizYLKsOswoLpKr8fjcZHJLPEAmYRDLQznJS4kBRGrCQTv8aIDvy3F6d6JJiTTDw/r9Xk1+!892Q7Zk= X-Complaints-To: Complaints to abuse@clear.net.nz X-DMCA-Complaints-To: Complaints to abuse@clear.net.nz X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.1 Xref: archiver1.google.com comp.lang.ada:37732 Date: 2003-05-25T02:11:55+12:00 List-Id: On Wed, 21 May 2003 02:07:05 +0200, Jano wrote: >Hi everybody. > >I'm getting abysmal differences in speed when writing large chunks (64k) >of data to a stream. The stream is from a socket of Gnat.Sockets, I >mention it because I don't know if it has something to do. > ... >In the contrary, the 'Write attribute takes like 3-4 seconds of 100% CPU >usage, shared more or less equally by my program and the SYSTEM process, ... >P.s2: I've tried also with strings, only the 'Write version of course, >and results are the same. I guess that the ACT vendor designed that part of their Ada compiler to be intolerably inefficient. It would not affect authors of programs written in a fairly good style. That speculation could be tested by: (1) finding out where ACT could have speeded up their X'Write() for TCP data, by adding a "pragma Suppress()" pragma statement. (2) Then that information would be reported in the form of a bug report. (3) Then the speculation is suggested to be incorrect if a tracking number comes back in the tailored response if any. If the text in the GNAT.Sockets package caused a loss of time in doing timing tests, then a bug report about the comments in the package could be sent in to ACT. If the topic is about TCP Ada streams then it probably about extremely simple programs that might be much modified later. Craig Carey Bindings to GNAT.Sockets: http://www.ijs.co.nz/code/ada95_http_hdrs.zip