comp.lang.ada
 help / color / mirror / Atom feed
From: Laurent <daemon2@internet.lu>
Subject: Re: How to get this space away?
Date: Wed, 3 Jun 2015 12:19:44 -0700 (PDT)
Date: 2015-06-03T12:19:44-07:00	[thread overview]
Message-ID: <cce2dd88-cff9-4699-bc7a-354a0d943cf9@googlegroups.com> (raw)
In-Reply-To: <fw3sygnfee3e.1r1ijje6utmpr$.dlg@40tude.net>

On Wednesday, June 3, 2015 at 9:28:26 AM UTC+2, Dmitry A. Kazakov wrote:

> My little program is slowly generating something which looks like the
> communication file I need.

With this sentence I actually tried to say that it took me quite some time/effort to get to the point that my program is doing what I want it to do.

Not always a good idea to translate sentences from ones native language into someone else. 

> How long are the strings involved? Your code does a lot of shuffling
> strings here and there when strings are return values. GNAT wasn't very
> good at optimizations of this kind, last time I looked. That is
> increasingly inefficient with long strings. You could consider doing string
> formatting in-place.

I had to increase the length of the V_String to 512 so that the desired final string fits. Just stupid that I use the same V_string to store the SIL_Code and a few other things which are only 6 chars long. Not very efficient.

I could as well immediately write the values into the text file instead of glueing everything together and then writing it.

The program itself is fast. After hitting enter in the terminal the result appears instantly.
Before that it has to read the configuration from 3 different files, put it in the corresponding arrays and do some other operations before it actually generates the string with the result.

Thanks

Laurent


  reply	other threads:[~2015-06-03 19:19 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-02 20:32 How to get this space away? Laurent
2015-06-02 20:53 ` Simon Wright
2015-06-03 18:59   ` Laurent
2015-06-03 19:30     ` Simon Wright
2015-06-02 22:28 ` Jeffrey R. Carter
2015-06-03 19:07   ` Laurent
2015-06-03 20:50     ` J-P. Rosen
2015-06-03 23:00       ` Randy Brukardt
2015-06-05  9:26         ` Stephen Davies
2015-06-08 12:33         ` Brad Moore
2015-06-08 19:47           ` Randy Brukardt
2015-06-08 20:25             ` Jeffrey R. Carter
2015-06-09 14:38               ` Brad Moore
2015-06-04  9:37       ` Georg Bauhaus
2015-06-04 12:32         ` Dmitry A. Kazakov
2015-06-05 13:02       ` Laurent
2015-06-06  0:02         ` Dennis Lee Bieber
2015-06-03  7:28 ` Dmitry A. Kazakov
2015-06-03 19:19   ` Laurent [this message]
2015-06-08 22:43 ` wowwomenonwheels205
replies disabled

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