Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:28429 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 38097 invoked by uid 1010); 19 Mar 2007 16:42:30 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 38082 invoked from network); 19 Mar 2007 16:42:30 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Mar 2007 16:42:30 -0000 Authentication-Results: pb1.pair.com header.from=stas@zend.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=stas@zend.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 63.205.162.114 as permitted sender) X-PHP-List-Original-Sender: stas@zend.com X-Host-Fingerprint: 63.205.162.114 unknown Windows 2000 SP4, XP SP1 Received: from [63.205.162.114] ([63.205.162.114:23681] helo=us-ex1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B6/36-33476-57DBEF54 for ; Mon, 19 Mar 2007 11:42:30 -0500 Received: from [127.0.0.1] ([192.168.16.109]) by us-ex1.zend.com with Microsoft SMTPSVC(6.0.3790.1830); Mon, 19 Mar 2007 09:42:27 -0700 Message-ID: <45FEBD70.2090000@zend.com> Date: Mon, 19 Mar 2007 09:42:24 -0700 Organization: Zend Technologies User-Agent: Thunderbird 2.0b2 (Windows/20070116) MIME-Version: 1.0 To: =?UTF-8?B?QmFua8OzIMOBZMOhbQ==?= CC: internals@lists.php.net, Lukas Kahwe Smith References: <1174134488.8667.33.camel@lena> <45FC74A5.6080307@pooteeweet.org> <1174231834.12274.110.camel@lena> In-Reply-To: <1174231834.12274.110.camel@lena> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 19 Mar 2007 16:42:27.0390 (UTC) FILETIME=[94221DE0:01C76A45] Subject: Re: [PHP-DEV] google SoC - dbobj From: stas@zend.com (Stanislav Malyshev) > Pure C code has access to PHP5's low level object API, so it can produce > a really intuitive interface (object persistence), that you can't do > from PHP code. C code uses a bit less memory and a lot less CPU time Just curious - which access do you need that PHP API doesn't give? > And one more point. In C you can implement complex object oriented > structures (lot of classes with fancy virtual functions) with small What do you mean by virtual functions? If you mean C++ meaning, all class methods in PHP are "virtual". > overhead, while in PHP this structure could mean a lot of overhead. For > example separate class for every column type, and separate object for > every persistent value is unimaginable in PHP, but sounds OK in C. This Why would it be that different in C - you'd still have to define the same classes and same objects and play by the engine rules? -- Stanislav Malyshev, Zend Products Engineer stas@zend.com http://www.zend.com/