-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Richard Quadling wrote:
> If, at the least, the files was a simple $a_Array, which could be
> written using ...
> 
> file_put_contents('./index.cache', ,'<?php $a_Index = ' .
> var_export($a_Index, True) . '; ?>');
> 
> sort of thing, then you could just include it and the index would be
> available instantly. No need for file io parsing.

That's an interesting technique. However, PHP's source code parser is
quite a bit more complicated than what our index format needs, so it's
quite possible that the fact that our custom format's simplicity would
offset PHP's performance gains from being written in C (I suppose we'd
have to benchmark to find out, but I remember MediaWiki's developers
talking about this).

The other implementation difficulty is getting the references to point
to the right locations in var_export, which is probably impossible,
which means we have to make a copy of $IDs in order to process in order
a non-referenced structure (alternatively, reversibly de-reference and
reference the children's entries).

- --
 Edward Z. Yang               Portable GnuPG: 0x995A2C84
 HTML Purifier <http://htmlpurifier.org> Anti-XSS Filter
 [[ C8D5 9E3C 15AD 1467 5561 2C0E 719A 2D9D 995A 2C84 ]]
      This Message Courtesy of Thunderbird Portable
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)

iD8DBQFHUFCBcZotnZlaLIQRAh5NAJsGo++SnO/DH0rkPFqErDoaVMBv9wCbBQmZ
Qd0CpeQDLcHJyPuv25wZ/mk=
=mFPf
-----END PGP SIGNATURE-----

Reply via email to