Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:88918 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 22904 invoked from network); 22 Oct 2015 12:45:51 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Oct 2015 12:45:51 -0000 Authentication-Results: pb1.pair.com smtp.mail=cornelius.howl@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=cornelius.howl@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.218.47 as permitted sender) X-PHP-List-Original-Sender: cornelius.howl@gmail.com X-Host-Fingerprint: 209.85.218.47 mail-oi0-f47.google.com Received: from [209.85.218.47] ([209.85.218.47:35909] helo=mail-oi0-f47.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 26/70-18485-E7AD8265 for ; Thu, 22 Oct 2015 08:45:51 -0400 Received: by oiao187 with SMTP id o187so46565207oia.3 for ; Thu, 22 Oct 2015 05:45:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:cc:content-type; bh=/Zb2sRy8M2btOe0ttI9B1wSDgLff077ttC23PlMJ3Sw=; b=Azc5WZwIvxvfd3M7355Ubhax03ta8u5u8/KmJ4r4WiRRNmFMjavbVizIz50dodHZRr 2qcjpAaSDw7ZtzrMjGgZZQg9g3zDGv9OY+mrLwRxGFcX4LxgLdey/9biveB5pTszUow5 To5Wm8SIATzHT/h/jrv7yiNfebC9/sz9X7OmdFNGeoPyScIS76clk9dlI4UZkUJAN0Sv CtqIVyFXJzFS0KrtDWaTWy2RY9EVI43TrLHT8rTR+pTTkG7d2AajwMMPUS+rs9wqlv+B gvM6j8hV8qGJ9/LQGpynjDkAuCRLXsS3j+u5FVnxZlTYlCEwkQf5RJJg7qmHUSF3/eVh Ffow== MIME-Version: 1.0 X-Received: by 10.202.231.79 with SMTP id e76mr681751oih.129.1445517947813; Thu, 22 Oct 2015 05:45:47 -0700 (PDT) Received: by 10.76.157.138 with HTTP; Thu, 22 Oct 2015 05:45:47 -0700 (PDT) Date: Thu, 22 Oct 2015 20:45:47 +0800 Message-ID: To: Derick Rethans Cc: Dmitry Stogov , Xinchen Hui , PHP Developers Mailing List Content-Type: multipart/alternative; boundary=001a11406f5acbc7900522b0dff1 Subject: [PHP-DEV] few questions about op_array From: cornelius.howl@gmail.com (Lin Yo-An) --001a11406f5acbc7900522b0dff1 Content-Type: text/plain; charset=UTF-8 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 --001a11406f5acbc7900522b0dff1--