Closed drupol closed 9 months ago
all
method in Collection.php
The code for retrieving all elements in our data collection has been simplified. It no longer uses a more complicated 'Operation' process, but instead directly converts the existing collection to an array. This makes our program more efficient.
Today, thanks to @dantleech (in https://www.dantleech.com/blog/2024/02/18/my-php-problems/), I discovered that
iterator_to_array
had a second parameterbool $preserve_keys = true
...Therefore, this PR improve the overall performance of this library.