comp.lang.ada
 help / color / mirror / Atom feed
From: Jeffrey Carter <jeffrey.carter@boeing.com>
Subject: Re: How to speed up stream & record handling?
Date: Thu, 21 Feb 2002 17:34:39 GMT
Date: 2002-02-21T17:34:39+00:00	[thread overview]
Message-ID: <3C752FAF.E181539A@boeing.com> (raw)
In-Reply-To: e7ebd224.0202210437.1c7d0fbf@posting.google.com

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



  parent reply	other threads:[~2002-02-21 17:34 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-02-21 12:37 How to speed up stream & record handling? Karl Ran
2002-02-21 14:17 ` Martin Dowie
2002-02-21 17:34 ` Jeffrey Carter [this message]
2002-02-21 20:25 ` Florian Weimer
2002-02-21 23:59   ` tmoran
2002-02-22 13:31     ` Karl Ran
2002-02-22 20:25       ` tmoran
2002-02-24  3:23 ` Nick Roberts
replies disabled

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