RE: [PHP4BETA] compile error
| From: | Michael S. Steuer | Date: | Thu, 09 Dec 1999 09:33:07 +0000 |
| Subject: | RE: [PHP4BETA] compile error | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-7706@lists.php.net to get a copy of this message | ||
|> This would also mean that inline-functions would result a much bigger
|> binary, because a lot of code would be duped in the process...
|everytime a
|> function gets called it is inserted into the calling function? I
|can see the
|> speed advantage (I think), but the earlier mentioned point is also true,
|> right? Or am I totally missing the point ?
|
|Well, not ALL functions, but only those specified as inline. And yes,
|it will increase the size of the binary. For this very reason inlining
|should usually only be used for small (or tiny even :) functions thats
|gets called a lot (preferable from not too many places to avoid too
|much duplication). Generally it doesn't make a HUGE impact on the
|binary size. though
So no HUGE impact on the binary size? How big is the speedadvantage? I have
compile with disable-inline right now, will the speeddisvantage be
noticeable?
regards,
Michael.