rfc:deprecate_ticks

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
rfc:deprecate_ticks [2021/06/10 13:18] nikicrfc:deprecate_ticks [2021/07/02 14:41] (current) nikic
Line 2: Line 2:
   * Date: 2021-05-11   * Date: 2021-05-11
   * Author: Nikita Popov <nikic@php.net>   * Author: Nikita Popov <nikic@php.net>
-  * Status: Under Discussion+  * Status: Withdrawn
   * Target Version: PHP 8.1   * Target Version: PHP 8.1
   * Implementation: https://github.com/php/php-src/pull/6967   * Implementation: https://github.com/php/php-src/pull/6967
 +  * Discussion: https://externals.io/message/114368
  
 ===== Introduction ===== ===== Introduction =====
Line 28: Line 29:
 The removal of the ticks mechanism is expected to have limited impact. The primary user of ticks were pcntl signals, and these are handled through [[https://www.php.net/pcntl_async_signals|async signals]] nowadays. The removal of the ticks mechanism is expected to have limited impact. The primary user of ticks were pcntl signals, and these are handled through [[https://www.php.net/pcntl_async_signals|async signals]] nowadays.
  
-It is possible to use ticks to instrument all code by overriding PHP's file stream wrapper and rewriting all included files to add the ''declare(ticks=1)'' directive. Apparently, there are people who use such an approach to monitor performance and memory usage of code.+It is possible to use ticks to instrument all code by overriding PHP's file stream wrapper and rewriting all included files to add the ''declare(ticks=N)'' directive. Apparently, there are people who use such an approach to monitor performance and memory usage of code.
  
 ===== Vote ===== ===== Vote =====
  
 Yes/No. Yes/No.
rfc/deprecate_ticks.1623331085.txt.gz · Last modified: 2021/06/10 13:18 by nikic