comp.lang.ada
 help / color / mirror / Atom feed
From: Craig Carey <research@ijs.co.nz>
Subject: Re: 'Write attribute vs Write procedure.
Date: Sun, 25 May 2003 02:11:55 +1200
Date: 2003-05-25T02:11:55+12:00	[thread overview]
Message-ID: <8guucvo69a14asq068nl75cthev9degr2c@4ax.com> (raw)
In-Reply-To: MPG.1934e1948ad1faf989709@News.CIS.DFN.DE

On Wed, 21 May 2003 02:07:05 +0200, Jano <nono@celes.unizar.es> 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




      parent reply	other threads:[~2003-05-24 14:11 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-21  0:07 'Write attribute vs Write procedure Jano
2003-05-21  0:42 ` tmoran
2003-05-21  7:48   ` Ole-Hjalmar Kristensen
2003-05-21  9:23   ` Ole-Hjalmar Kristensen
2003-05-21 16:22     ` tmoran
2003-05-22  7:51       ` Ole-Hjalmar Kristensen
2003-05-21 16:24     ` tmoran
2003-05-21 21:17     ` Simon Wright
2003-05-22  8:02       ` Ole-Hjalmar Kristensen
2003-05-22 13:49       ` Marc A. Criley
2003-05-22 20:07         ` Simon Wright
2003-05-23  6:09   ` Craig Carey
2003-05-23 19:55     ` Simon Wright
2003-05-23 20:48       ` AI-248 and counting the elements in an external file Larry Kilgallen
2003-05-23 21:12         ` Stephen Leake
2003-05-23 21:45           ` Randy Brukardt
2003-05-24  1:45             ` Larry Kilgallen
2003-05-24 22:00               ` Robert I. Eachus
2003-05-25  3:54                 ` Larry Kilgallen
2003-05-27 20:19                   ` Randy Brukardt
2003-05-27 20:57                     ` Larry Kilgallen
2003-05-28 18:26                       ` Randy Brukardt
2003-05-24  1:42           ` Larry Kilgallen
2003-05-28 21:17             ` Brian Gaffney
2003-05-28 22:06               ` Larry Kilgallen
2003-05-24 14:11 ` Craig Carey [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox