diff options
author | Ludovic Pouzenc <ludovic@pouzenc.fr> | 2012-08-03 11:56:26 +0000 |
---|---|---|
committer | Ludovic Pouzenc <ludovic@pouzenc.fr> | 2012-08-03 11:56:26 +0000 |
commit | 4c0cb2204e0924131aad564b99ef56d64659f1cd (patch) | |
tree | 7687b696dd5caecec2996bf663b612c348daab40 /poc/poc02-compiling-cake/src/php-weave/main2.php | |
parent | 4c1215ca04bc682a5165363724a69f9a557304de (diff) | |
download | 2012-php-weave-4c0cb2204e0924131aad564b99ef56d64659f1cd.tar.gz 2012-php-weave-4c0cb2204e0924131aad564b99ef56d64659f1cd.tar.bz2 2012-php-weave-4c0cb2204e0924131aad564b99ef56d64659f1cd.zip |
Serialisation corrigée : json c'est une connerie... mais php embarque des fonctions de serialisation qui vont bien.
3m30 au parsing
30 secondes à la lecture de l'ensemble (118Mo sur disque, 800Mo en RAM)
Note : faut pas parser tous les tests case !!
Note2 : les gros blocs de commentaire de début de fichiers pourraient être sautés
git-svn-id: file:///var/svn/2012-php-weave/trunk@12 d972a294-176a-4cf9-8ea1-fcd5b0c30f5c
Diffstat (limited to 'poc/poc02-compiling-cake/src/php-weave/main2.php')
-rw-r--r-- | poc/poc02-compiling-cake/src/php-weave/main2.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/poc/poc02-compiling-cake/src/php-weave/main2.php b/poc/poc02-compiling-cake/src/php-weave/main2.php index faf3ac1..93e4673 100644 --- a/poc/poc02-compiling-cake/src/php-weave/main2.php +++ b/poc/poc02-compiling-cake/src/php-weave/main2.php @@ -7,11 +7,14 @@ ini_set('xdebug.max_nesting_level', 2000); $weaver=new CakePHPWeaver; $filelist = $weaver->findAllFiles("../workdir/cache", '/\.ast$/', '/^$/'); $asts=array(); + +echo memory_get_usage()."\n"; + foreach ($filelist as $f) { echo "Unserializing '$f'\n"; $asts[]=$weaver->unserializeAST($f); } -echo memory_get_usage(); +echo memory_get_usage()."\n"; ?> |