comp.lang.ada
 help / color / mirror / Atom feed
From: Robert Eachus <rieachus@comcast.net>
Subject: Re: GNAT.Sockets Streaming inefficiency
Date: Thu, 8 Jun 2017 08:39:40 -0700 (PDT)
Date: 2017-06-08T08:39:40-07:00	[thread overview]
Message-ID: <ab811541-74da-4f94-b193-99240b963544@googlegroups.com> (raw)
In-Reply-To: <c00a464f-5587-4a8e-a11a-589f7030127a@googlegroups.com>

On Thursday, June 8, 2017 at 6:36:01 AM UTC-4, maste...@gmail.com wrote:
> Configuration: X64, Linux & Windows (GNATPRO 7.4.2)
> While using GNAT.Sockets.Stream_Access, there is a real performance issue while using String'Output(...).
> 
> My test sends 500 times a 1024-long String using String'Output(TCP_Stream on 127.0.0.1) and the result is:
> - Linux : average 'output duration = 3 us
> - Windows: average 'output duration = 250 us
> 
> From prior discussion with AdaCore, the "String" type is the only one for which this latency is NOT observed on Linux.
> 
> Any idea on:
> - is there a way to get similar performance on Windows (maybe using another type or method?)
> - is there any configuration that may solve this issue?

Have you tried declaring an array of bytes type, and doing an unchecked conversion? Remember that you need the two types to match exactly the descriptive information at the beginning of the objects.

  parent reply	other threads:[~2017-06-08 15:39 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-08 10:36 GNAT.Sockets Streaming inefficiency masterglob
2017-06-08 14:46 ` Dmitry A. Kazakov
2017-06-08 15:39 ` Robert Eachus [this message]
2017-06-09 13:30 ` gautier_niouzes
2017-06-09 15:24   ` Dmitry A. Kazakov
2017-06-19  9:22     ` masterglob
replies disabled

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