# [PATCH] - Avoid invoking setitimer when timeouts have been disabled

- Thread: https://externals.io/message/45908
- Original archive: https://news-web.php.net/php.internals/45908
- Started by Arvind Srinivasan on 2009-10-30T10:12:47+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #45908 — Arvind Srinivasan — 2009-10-30T10:12:47+00:00

URL: https://externals.io/message/45908#45908

When compiled with #ifdef ZTS, the setitimer calls in
zend_unset_timeout show up as a performance hotspot even when I'd set
max_execution_time and max_input_time to 0 in php.ini.

I've attached a patch for review that avoids invoking
zend_unset_timeout (and thereby the expensive setitimer call within)
when timeouts have been disabled via settings in php.ini

Thanks,
Arvi
