From: dhenry <tfc.duke@gmail.com>
Subject: Re: Disabling string evaluation in a logging system
Date: Wed, 19 May 2010 00:47:39 -0700 (PDT)
Date: 2010-05-19T00:47:39-07:00 [thread overview]
Message-ID: <a54aeb58-eb57-4dd9-ae62-deca0fceefcb@a20g2000vbc.googlegroups.com> (raw)
In-Reply-To: hsumvd$dnt$1@speranza.aioe.org
On 18 mai, 20:40, tmo...@acm.org wrote:
> So write your own specialized preprocessor that adds the "if"
> statement to calls on log.write before handing the result to the compiler.
That may be a possible solution to my problem.
> As usual with "optimizations", the first question is "will this
> obfuscation actually save significant time?". If the answer,
> surprisingly, is "yes", then find the few places where log.write
> is actually called millions of times and manually insert the "if"
> test in those places.
Yes, this may be seen as a premature optimization. I was just looking
for a possible opportunity (and maybe learn some new Ada tricks). If I
encounter some real performance issues, I'll probably do that.
I prefer something "elegant" (code readability and maintenance is
important) but with "poor" performances, as long as it respects
performance requirements.
prev parent reply other threads:[~2010-05-19 7:47 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-18 7:48 Disabling string evaluation in a logging system dhenry
2010-05-18 8:15 ` Dmitry A. Kazakov
2010-05-18 8:45 ` Dmitry A. Kazakov
2010-05-18 9:45 ` Cyrille
2010-05-18 10:26 ` Dmitry A. Kazakov
2010-05-18 12:10 ` Georg Bauhaus
2010-05-18 12:15 ` Georg Bauhaus
2010-05-18 12:54 ` Dmitry A. Kazakov
2010-05-18 9:32 ` Gautier write-only
2010-05-18 9:37 ` Gautier write-only
2010-05-18 11:27 ` Gautier write-only
2010-05-18 12:18 ` dhenry
2010-05-19 9:04 ` Stephen Leake
2010-05-19 12:38 ` Dmitry A. Kazakov
2010-05-19 18:02 ` (see below)
2010-05-19 19:08 ` Adam Beneschan
2010-05-18 10:13 ` stefan-lucks
2010-05-18 18:17 ` Jeffrey R. Carter
2010-05-18 18:40 ` tmoran
2010-05-19 7:47 ` dhenry [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