Re: New function: spl_object_id() or spl_object_handle()

From: Date: Fri, 28 Nov 2014 16:39:42 +0000
Subject: Re: New function: spl_object_id() or spl_object_handle()
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-79281@lists.php.net to get a copy of this message
Am 28.11.2014 15:46 schrieb "Ferenc Kovacs" <tyra3l@gmail.com>: > > from a quick test using spl_object_hash seems to be the slower with big number of elements in haystack. Your test only does the is-it-known test once. For an already-visited-set use case the test will run once for each visited element, and will usually fail, too, thus running the whole already built haystack at each point from front to end with in_array - overall N*(N/2) test + N*simple-array-append for the in_array approach, vs. N test + N*spl_object_hash-append. best regards Patrick

« previous php.internals (#79281) next »