making PHP_FUNCTION static?

From: Date: Mon, 24 Jul 2006 16:48:29 +0000
Subject: making PHP_FUNCTION static?
Groups: php.internals 
Request: Send a blank email to internals+get-24936@lists.php.net to get a copy of this message
Hello, I was wondering if we could make ZEND_FUNCTION() declaration static. This represents a compatibility break with previous PHP versions, but only extensions that already declare the function as static would be affected. Declaring a function as static (or anything else) decreases load times and the size of the dso, allows better optimizations by the compiler, etc.. So its all advantages :) (well, then all functions must be defined or #include'd in the same file as the function table). There are some (few) extensions that already mark their functions as static, so should we use a wide static keywording, by changing the macro, or add the keyword locally? Nuno P.S.: Anyone that wants to learn more about why, how and when to use static and const keywords, just read the Ulrich Drepper dso paper.

« previous php.internals (#24936) next »