[drupal-devel] Speed of Drupal, memory usage, and all that stuff
Gerhard Killesreiter
killesreiter at physik.uni-freiburg.de
Sun Feb 6 18:24:10 UTC 2005
On Sun, 6 Feb 2005, Gabor Hojtsy wrote:
> > This is the alternative approach for which I already have a (somewhat
> > dirty) parser. ;)
> >
> > The problem is that the most elegant way to write such a parser involves
> > using php 4.3.x. If we only want the function names, a php 4.1 version
> > could be developed, though.
>
> Would that resolve things like?
>
> /* this is defined in another file
> function foobar_foo() {
> }
> */
Probably not.
> I doubt. Contrib modules might have such code though, especially modules
> under development (head).
Well, then developers need to learn a bit about cvs. Uncommented code is
evil.
> Also I have authored patches before with code
> like:
>
> if (!function_exists('foobar_foo')) {
> function foobar_foo() {
> ...
> }
> }
>
> Which is even hard for the tokenizer to parse...
If you write:
if (!function_exists('foobar_foo')) {
function foobar_foo() {
...
}
}
It should be possible.
Cheers,
Gerhard
More information about the drupal-devel
mailing list