note 103110 added to control-structures.goto

From: Date: Sat, 26 Mar 2011 00:41:54 +0000
Subject: note 103110 added to control-structures.goto
Groups: php.notes 
Request: Send a blank email to php-notes+get-178228@lists.php.net to get a copy of this message
About the comparison in the previous post between goto and while, goto is NOT as fast as while, it is always slower for about 25%. In my tests by using the code below, with the addition of a for loop I get: goto: 0.0558710098267 while: 0.0439591407776 for: 0.0468330383301 In another test PC I have seen goto being even 50% slower. ---- Server IP: 69.147.83.197 Probable Submitter: 213.114.162.202 ---- Manual Page -- http://www.php.net/manual/en/control-structures.goto.php Edit -- https://master.php.net/note/edit/103110 Del: integrated -- https://master.php.net/note/delete/103110/integrated Del: useless -- https://master.php.net/note/delete/103110/useless Del: bad code -- https://master.php.net/note/delete/103110/bad+code Del: spam -- https://master.php.net/note/delete/103110/spam Del: non-english -- https://master.php.net/note/delete/103110/non-english Del: in docs -- https://master.php.net/note/delete/103110/in+docs Del: other reasons-- https://master.php.net/note/delete/103110 Reject -- https://master.php.net/note/reject/103110 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#178228) next »