1
0
mirror of https://github.com/php/php-src.git synced 2026-04-15 03:51:07 +02:00
Files
archived-php-src/ext/reflection
Dmitry Stogov d8e4fbae62 Fast Class Cache
This is generalization of idea, that was previously usesd for caching
resolution of class_entries in zend_type. Now very similar mechanizm is
used for general zend_string into zend_class_entry resolution.

Interned zend_string with IS_STR_CLASS_NAME_MAP_PTR GC_FLAG uses its
refcount to adress corresponding zend_class_entry cache slot.
The refcount keeps an offset to this slot from CG(map_ptr_base).
Flag may be checked by ZSTR_HAS_CE_CACHE(str), cache slot may be read by
ZSTR_GET_CE_CACHE(str) and set by ZSTR_SET_CE_CACHE(str, ce).
2021-04-08 23:37:40 +03:00
..
2021-03-17 19:08:03 +01:00
2021-03-17 19:08:03 +01:00
2021-04-08 23:37:40 +03:00
2021-03-17 19:08:03 +01:00
2021-03-17 19:08:03 +01:00