php-src/ext/imap
Niels Dossche 642e11140c
Minor pcre optimizations (#12923)
* Update signature of pcre API

This changes the variables that are bools to actually be bools instead
of ints, which allows some additional optimization by the compiler (e.g.
removing some ternaries and move extensions).

It also gets rid of the use_flags argument because that's just the same
as flags == 0. This reduces the call frame.

* Use zend_string_release_ex where possible

* Remove duplicate symbols from strchr

* Avoid useless value conversions

* Use a raw HashTable* instead of a zval

* Move condition

* Make for loop cheaper by reusing a recently used value as start iteration index

* Remove useless condition

This can't be true if the second condition is true because it would
require the string to occupy the entire address space.

* Upgrading + remark
2023-12-11 19:43:26 +01:00
..
tests Close PHP tags in tests 2023-10-18 17:34:10 +02:00
config.m4 ext/imap/config.m4: -Werror=implicit-function-declaration compatibility. 2023-03-28 15:18:18 +01:00
config.w32 Remove unused defines 2019-07-18 02:21:39 +02:00
CREDITS
php_imap.c Minor pcre optimizations (#12923) 2023-12-11 19:43:26 +01:00
php_imap.h Implement diagnostic ignore macro for Clang 2023-10-18 17:37:15 +02:00
php_imap.stub.php ext/imap: Narrow return type to true 2023-06-18 13:05:02 +01:00
php_imap_arginfo.h ext/imap: Narrow return type to true 2023-06-18 13:05:02 +01:00