[PHP-DEV] Re: [RFC] Deprecate ticks

2021-06-28 Thread Nikita Popov
On Thu, Jun 10, 2021 at 3:21 PM Nikita Popov  wrote:

> On Tue, May 11, 2021 at 10:52 AM Nikita Popov 
> wrote:
>
>> Hi internals,
>>
>> I'd like to propose the depreciation of the ticks mechanism:
>> https://wiki.php.net/rfc/deprecate_ticks
>>
>> I'm submitting this separately from the PHP 8.1 deprecations RFC, as this
>> is a language change, even if not a particularly important one...
>>
>
> To cross post a comment from the PR, in
> https://github.com/php/php-src/pull/6967#issuecomment-841344456 someone
> mentions that they intercept and rewrite all included files to add
> declare(ticks=N) in order to perform memory usage / performance monitoring.
>

In the same thread someone points out that there is a WordPress proflinig
plugin using the same approach:
https://github.com/php/php-src/pull/6967#issuecomment-859124223

I think I'm going to withdraw this RFC. Keeping this functionality is not a
particularly large burden on us, and some people are getting some use out
of it, even if those uses are rather ... adventurous.

Regards,
Nikita


[PHP-DEV] Re: [RFC] Deprecate ticks

2021-06-10 Thread Nikita Popov
On Tue, May 11, 2021 at 10:52 AM Nikita Popov  wrote:

> Hi internals,
>
> I'd like to propose the depreciation of the ticks mechanism:
> https://wiki.php.net/rfc/deprecate_ticks
>
> I'm submitting this separately from the PHP 8.1 deprecations RFC, as this
> is a language change, even if not a particularly important one...
>
> Regards,
> Nikita
>

To cross post a comment from the PR, in
https://github.com/php/php-src/pull/6967#issuecomment-841344456 someone
mentions that they intercept and rewrite all included files to add
declare(ticks=N) in order to perform memory usage / performance monitoring.

Regards,
Nikita