POV-Ray : Newsgroups : povray.off-topic : My first C++ program : Re: A test Server Time
30 Sep 2024 19:27:38 EDT (-0400)
  Re: A test  
From: Invisible
Date: 24 Sep 2008 09:53:01
Message: <48da463d@news.povray.org>
Warp wrote:

>   Compilers use some kind of heuristic to determine whether it's beneficial
> to inline some function or not. What those heuristics are, I don't know.
> 
>   From the programmer's point of view, it doesn't really matter. The program
> will behave identically in either case (except maybe a small difference in
> execution speed).

Right. Well I guess that more or less answers my question. I was just a 
little worried that maybe if you don't explicitly say "inline", the 
compiler will never attempt to inline it and hence introduce way too 
much overhead. It seems that's not the case...


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.