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.1 required=5.0 tests=BAYES_20,INVALID_DATE autolearn=no autolearn_force=no version=3.4.4 Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!elroy.jpl.nasa.gov!decwrl!netcomsv!jls From: jls@netcom.COM (Jim Showalter) Newsgroups: comp.lang.ada Subject: Re: Use pragma INLINE or not? Message-ID: <1991Jun19.234429.20796@netcom.COM> Date: 19 Jun 91 23:44:29 GMT References: <1991Jun18.171459.11744@software.org> Organization: Netcom - Online Communication Services UNIX System {408 241-9760 guest} List-Id: >There seem to be 2 schools of thought: > 1) Don't use it. Smart compilers will automatically > inline the most appropriate routines. > 2) Use it. Compilers aren't that smart yet. >What do you think? [Tried to e-mail this, but it bounced...] Let the compiler inline when it can figure it out. Use a profiler to find bottlenecks when tuning the code, and manually inline the offenders. DON'T inline everything to "be sure"--this has a bunch of bad effects, and is completely unecessary (10% of your code uses 90% of your CPU). -- *** LIMITLESS SOFTWARE, Inc: Jim Showalter, jls@netcom.com, (408) 243-0630 **** *Proven solutions to software problems. Consulting and training on all aspects* *of software development. Management/process/methodology. Architecture/design/* *reuse. Quality/productivity. Risk reduction. EFFECTIVE OO usage. Ada/C++. *