Re: Weird PhD optimizations (10% !)

From: Date: Wed, 25 May 2011 12:07:08 +0000
Subject: Re: Weird PhD optimizations (10% !)
References: 1 2 3  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969382707@lists.php.net to get a copy of this message
Hi 2011/5/25 Hannes Magnusson <hannes.magnusson@gmail.com>: > We could do shitloads of optimizations if we generated most of the > code, or moved some things into cpp macros, but it becomes so insanely > annoying to debug that I don't think its worth the benefits. Just a random thought; I use a preprocessor for generating documentation in one of my older projects which relies on the tokenizer extension to parse the source code. Since things like 'Reader::XMLNS_DOCBOOK" is most likely to only be used in such context we could infact have a preprocessor script to replace such constant values into their real values. But I think it boils down to the fact whether its sane to do so, but it might provide a nice value for people working on that on-the-move or for other projects that want to utilize PhD. -- regards, Kalle Sommer Nielsen kalle@php.net

« previous php.doc (#969382707) next »