[PHP-DEV] [RFC] Wall clock time based execution time

2021-07-25 Thread Deleu
Hello everyone! A few months ago there was a proposed RFC for having wall clock time for timeout [1]. It seemed like there was not a lot of push back against it [2] with an exception of Nikita's comment about having 2 ini settings vs having a toggle on the existing ini setting [3] [1] https://wik

Re: [PHP-DEV] [RFC] Wall clock time based execution time

2021-07-25 Thread Máté Kocsis
Hi Deleu, What a coincidence! I've just added my PR to the "PHP 8.2" milestone on GitHub. That means, I'll definitely want to continue the work on this proposal as soon as I finish my previous tasks. The reason that I delayed this RFC is that it lacked feedback and answers to my latest questions.

[PHP-DEV] array_merge() inside looping optimization

2021-07-25 Thread David Rodrigues
Hi! Using array_merge() inside a loop can greatly impact performance. From the tests I did, doing it in the middle costs 250% more than doing it later: - Inside: for(...) $x = array_merge($x, $y) - After: for(...) $x[] = $y; array_merge(... $x) Even using array_push() doesn't seem like a good al