note 60712 added to function.is-array

From: Date: Sat, 14 Jan 2006 23:40:06 +0000
Subject: note 60712 added to function.is-array
Groups: php.notes 
Request: Send a blank email to php-notes+get-101768@lists.php.net to get a copy of this message
I was just profiling a rather large php app I have been working on using APD, and noticed that the is_array() function is (apparently) rather inefficient in terms of 'real' time. Not sure why this might be, but it could be a bottleneck in an application where performance is important. Here is the applicable pprofp output, for those interested: Real User System secs/ cumm %Time (excl/cumm) (excl/cumm) (excl/cumm) Calls call s/call Memory Usage Name --------------------------------- ----------------------------------------------------- 36.9 0.76 0.76 0.00 0.00 0.05 0.05 53 0.0143 0.0143 -99704 is_array ---- Manual Page -- http://www.php.net/manual/en/function.is-array.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+60712 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+60712&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+60712&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+60712&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+60712&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+60712&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+60712&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+60712&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+60712&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#101768) next »