This repository has been archived by the owner on Jan 31, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify SplPriorityQueue::serialize()
$queue = new \Zend\Stdlib\SplPriorityQueue; for ($i=0; $i<100; $i++) { $queue->insert('hello'.$i, $i); } // Before $time = microtime(true); for ($i=0; $i<1000; $i++) { $serialized = $queue->serialize(); } echo (microtime(true) - $time); // 0.75588607788086 // After $time = microtime(true); for ($i=0; $i<1000; $i++) { $serialized = $queue->serialize(); } echo (microtime(true) - $time); // 0.28470015525818
- Loading branch information