Closed GoogleCodeExporter closed 9 years ago
What you are suggesting would place a vQmodded cache file of every file,
regardless of any modifications?
Original comment by DJG6...@gmail.com
on 22 May 2013 at 3:22
Option number 1:
1) The simple solution is: Yes, on every file. This will skip this loop:
foreach($this->_mods as $modObject) {
foreach($modObject->mods as $path => $mods) {
if($this->_checkMatch($path, $sourcePath)) {
$modObject->applyMod($mods, $fileData);
}
}
}
on every request for not modified files. It does nothing as it goes through all
XMLs and finds no modification in every request.
2) The more complex solution is to:
a) simplify the mods.cache to only contain if each file is modified or not and
name of the cache file
b) this will reduce the size from average 0,5MByte to several kilobytes
(unserialize will be much faster)
c) remove the call to _getMods() from constructor, put it into
modCheck($filename) after the check if there is a cache file
d) "lazy" load the modifications only if the there is no info for the $filename
in mods.cache
Original comment by mar...@inprodej.cz
on 22 May 2013 at 9:22
Original comment by DJG6...@gmail.com
on 26 Jul 2013 at 7:56
Original issue reported on code.google.com by
mar...@inprodej.cz
on 22 May 2013 at 3:15