News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

PHP 10.0 Blog:
More inlining
November 20, 2006 @ 08:10:00

On the PHP 10.0 Blog, Stas talks more about inlining in PHP functions - some of the bad things this time (see here and here for other comments), including things that could break an application if not handled correctly.

Performance benefits from inlining simple functions might be significant, since function call in PHP is not cheap. We'd have some potential problems there.

Included in the list are things like:

  • Variable scoping - we don't want function variables to mess with our scope, so we'd probably rename them or something.
  • Then we might get a problem if function messing with current scope is called indirectly so we can't really know.
  • And then some may use end-of-scope for destruction of variables that have dtors, so when we'd clean up these variables?

1 comment voice your opinion now!
inlining function performance benefit problem scope variable inlining function performance benefit problem scope variable


blog comments powered by Disqus

Similar Posts

Ulf Wendel's Blog: PHP mysqlnd query cache plugin quickstart is online!

Felix Geisendorfer's Blog: PHP 5.2.1 was a evil release - check your server

Ning Code Blog: PHP Microbenchmarking

I/O Reader: 15 Cool Things & 12 Things to Dislike About PHP

Anthony Ferrara: What's In A Type


Community Events





Don't see your event here?
Let us know!


laravel framework podcast mvc version community update release symfony series tool library composer opinion security language voicesoftheelephpant package interview introduction

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework