note 92517 added to function.require-once

From: Date: Tue, 28 Jul 2009 04:44:19 +0000
Subject: note 92517 added to function.require-once
Groups: php.notes 
Request: Send a blank email to php-notes+get-158807@lists.php.net to get a copy of this message
did some performance on include, include_once, require, require_once and got the following results: testing avg: 0.00025210937500002 :require (320) 0.00017902500000002 :include (320) 0.00024565312500002 :require_once (320) 0.00017923437500002 :include_once (320) where testing was the file included between the two microtime comparisons the time on the left is the avg it took to compute requests that is (the total time added up from each request divided by the total requests, or the independent variable, in this case, 320). using _once compared to regulars is considerably unnecessary, unless running HUGE applications and projects. however, with figures, require runs 140.8% slower than include, so include is the safer approach for speed ---- Server IP: 69.147.83.197 Probable Submitter: 67.240.243.43 ---- Manual Page -- http://www.php.net/manual/en/function.require-once.php Edit -- https://master.php.net/note/edit/92517 Del: integrated -- https://master.php.net/note/delete/92517/integrated Del: useless -- https://master.php.net/note/delete/92517/useless Del: bad code -- https://master.php.net/note/delete/92517/bad+code Del: spam -- https://master.php.net/note/delete/92517/spam Del: non-english -- https://master.php.net/note/delete/92517/non-english Del: in docs -- https://master.php.net/note/delete/92517/in+docs Del: other reasons-- https://master.php.net/note/delete/92517 Reject -- https://master.php.net/note/reject/92517 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#158807) next »