From: "John R. Strohm" <strohm@airmail.net>
Subject: Re: Question: Combination of Access and Constraining
Date: Sun, 23 Feb 2003 11:55:37 -0600
Date: 2003-02-23T11:55:37-06:00 [thread overview]
Message-ID: <86D666F91CCF0124.CCBDA9B738200EE1.B38D437943CE0AD3@lp.airnews.net> (raw)
In-Reply-To: x7vd6lji3b8.fsf@smaug.pushface.org
It can.
Some years ago, I had occasion to do a pixel blob coloring routine, in C,
that did 8-way connectivity. The first version used a subroutine. Runtime
was absolutely unacceptable for the application. The call/return and
parameter passing time dominated. The second version used a C macro, and
was fast enough.
I used a macro because I wanted the source code to be HUMAN-READABLE.
Physically inlining the code, without the macro, would have been a lot less
readable.
"Simon Wright" <simon@pushface.org> wrote in message
news:x7vd6lji3b8.fsf@smaug.pushface.org...
> Yuri <yuri@tsoft.com> writes:
>
> > I agree mostly, but there could be projects where performance is
> > critical.
> >
> > If rate of processing is low than performance is no issue. But if
> > say you process real-time video higher-performance processor may
> > make project cost-inefficient.
>
> Many programmes have some time-critical areas. But it's not common (in
> my experience) for something like parameter passing style to have much
> impact, unless it's completely bizarre (passing 1MB arreays by copy
> would count as bizarre!) More often it's very localized, and better
> algorithms will make much more difference.
next prev parent reply other threads:[~2003-02-23 17:55 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-02-20 8:06 Question: Combination of Access and Constraining Papandopulo
2003-02-20 9:00 ` tmoran
2003-02-20 9:29 ` Dmitry A. Kazakov
2003-02-20 15:20 ` Papandopulo
2003-02-20 16:20 ` Dmitry A. Kazakov
2003-02-20 17:58 ` Jeffrey Carter
2003-02-20 20:35 ` Yuri
2003-02-21 1:21 ` Jeffrey Carter
2003-02-21 22:53 ` Yuri
2003-02-23 12:34 ` Simon Wright
2003-02-23 17:50 ` Jeffrey Carter
2003-02-23 17:55 ` John R. Strohm [this message]
2003-02-23 17:48 ` John R. Strohm
2003-02-20 13:12 ` David C. Hoos, Sr.
2003-02-20 15:00 ` Matthew Heaney
-- strict thread matches above, loose matches on Subject: below --
2003-02-20 9:46 Grein, Christoph
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox