Re: array_merge() vs array unpacking performance
| From: | Kamil Tekiela | Date: | Mon, 01 Aug 2022 17:45:22 +0000 |
| Subject: | Re: array_merge() vs array unpacking performance | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-118340@lists.php.net to get a copy of this message | ||
Hi David,
It would be useful if you could provide your measurements and the way you
arrived at such results. A quick test doesn't seem to support your
findings: https://3v4l.org/v5m9f#v8.1.8
There are already a number of optimizations in array_merge. It might depend
on the actual test data that you used. Maybe a specific path needs to be
optimized. Please provide some more details.
Regards,
Kamil