note 113807 deleted from function.eval by peehaa

From: Date: Thu, 05 Dec 2013 16:00:28 +0000
Subject: note 113807 deleted from function.eval by peehaa
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-197755@lists.php.net to get a copy of this message
Note Submitter: bimal at sanjaal dot com ---- In legacy system optimization, eval() could be of help. <?php while(big_loop()) { ... include('some-file.php'); .... } ?> can be converted to: <?php $included_file_contents = include('some-file.php'); while(big_loop()) { ... eval($included_file_contents); .... } ?> Hope it reduces the disk access in each loop. But stay away from include_once()/require_once()

« previous php.notes (#197755) next »