On Fri, May 6, 2011 at 18:12, Richard Quadling <rquadl...@gmail.com> wrote:
> On 6 May 2011 17:11, Hannes Magnusson <bj...@php.net> wrote:
>> bjori                                    Fri, 06 May 2011 16:11:39 +0000
>>
>> Revision: http://svn.php.net/viewvc?view=revision&revision=310808
>>
>> Log:
>> Fix aggregating version information for the complete manual
>>
>> Changed paths:
>>    U   phpdoc/doc-base/trunk/configure.php
>>
>> Modified: phpdoc/doc-base/trunk/configure.php
>> ===================================================================
>> --- phpdoc/doc-base/trunk/configure.php 2011-05-06 15:13:40 UTC (rev 310807)
>> +++ phpdoc/doc-base/trunk/configure.php 2011-05-06 16:11:39 UTC (rev 310808)
>> @@ -554,8 +554,8 @@
>>
>>
>>     echo "Iterating over extension specific version files... ";
>> -    if ($ac["ONLYDIR"]) {
>> -        $globdir = $ac["ONLYDIR"] . "{/../,.}versions.xml";
>> +    if ($ac["GENERATE"] != "no") {
>> +        $globdir = dirname($ac["GENERATE"]) . "/{../,./}versions.xml";
>>     }
>>     else {
>>         if (file_exists($ac['rootdir'] . '/en/trunk')) {
>>
>>
>> --
>> PHP Documentation Commits Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>
> What is ONLYDIR for?


file-entities.php.in, to only scan that particular directory.


The biggest bottleneck in configure.php today is the disk IO needed to
generate the file-entities.ent which is used by the magical
&reference.extname.functionname; include.
When you pass in --generate=path/to/filename.xml we want to optimize
that completely out, and only generate file entities for that
particular directory - and the same for the versions.xml file.

I've been playing around with random solutions for that, including
"find . > /dev/null".. trying to find some way to work around it :]

-Hannes

Reply via email to