From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,38b27bed88e97415 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-02-23 10:11:05 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.airnews.net!cabal12.airnews.net!usenet From: "John R. Strohm" Newsgroups: comp.lang.ada Subject: Re: Question: Combination of Access and Constraining Date: Sun, 23 Feb 2003 11:55:37 -0600 Organization: Airnews.net! at Internet America Message-ID: <86D666F91CCF0124.CCBDA9B738200EE1.B38D437943CE0AD3@lp.airnews.net> X-Orig-Message-ID: References: <1d13e1b4.0302200006.70207b86@posting.google.com> <9d795v0h3qa2922u8vodfhpfvprpre6ak2@4ax.com> <1d13e1b4.0302200720.9666350@posting.google.com> <3E5517AE.1040003@acm.org> <3E553C5E.7B2850FD@tsoft.com> <3E557F4C.1010101@acm.org> <3E56AE14.9B5F31A@tsoft.com> Abuse-Reports-To: abuse at airmail.net to report improper postings NNTP-Proxy-Relay: library2.airnews.net NNTP-Posting-Time: Sun Feb 23 12:10:16 2003 NNTP-Posting-Host: !_kKs1k-XXNHF+n (Encoded at Airnews!) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Xref: archiver1.google.com comp.lang.ada:34483 Date: 2003-02-23T11:55:37-06:00 List-Id: 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" wrote in message news:x7vd6lji3b8.fsf@smaug.pushface.org... > Yuri 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.