few questions about op_array

From: Date: Thu, 22 Oct 2015 12:45:47 +0000
Subject: few questions about op_array
Groups: php.internals 
Request: Send a blank email to internals+get-88918@lists.php.net to get a copy of this message
Hi all, I am looking into zend op_array structure, and few questions raised in my mind: 1. Why op_array->refcount uses *uint32 instead of uint32, is there a reason? if we can replace it with uint32, then we might save one emalloc call for memory allocation for every op_array allocation? 2. There are also a lot of information saved in the op_array structure, if we can move line_start, line_end, doc_comments...etc into an external structure, then we might be able to reduce the op_array size and decrease the cache miss? is it doable? Cheers, Yo-An Lin https://github.com/c9s

« previous php.internals (#88918) next »