Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:45899 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 60345 invoked from network); 29 Oct 2009 16:37:10 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 Oct 2009 16:37:10 -0000 Authentication-Results: pb1.pair.com header.from=patrick.allaert@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=patrick.allaert@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.211.183 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: patrick.allaert@gmail.com X-Host-Fingerprint: 209.85.211.183 mail-yw0-f183.google.com Received: from [209.85.211.183] ([209.85.211.183:40846] helo=mail-yw0-f183.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 73/13-09136-4B4C9EA4 for ; Thu, 29 Oct 2009 11:37:08 -0500 Received: by ywh13 with SMTP id 13so2080235ywh.29 for ; Thu, 29 Oct 2009 09:37:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=7ePH8sETqhiEDCcSlhJGH/+E9R2qVUrWfbu9TH0gjnQ=; b=kEvUzdacWK4iIiBFWBRZKfmFywjK/l0IvCiw7jjzrgu2y3UdVafiwQea710qEopcZc DzUCeOLkkToRnAm5TNJJydTryDquUzJooH9fX4Ylo74K71q3cF2rIBEzJNKaNDnGx2RH byX0oXlas1+pXLEUz3Kc19Du9+9X8JpsASzok= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=lVfurVigv6Ok6wKmneP138gejS6fDvY8cY5ZpXyU1xSj+in2V3m7HHH/4u2G4NQBEt cZNRQSMoHA98PtCfIbK50Sn8jmQE3CZF3d79gsyVxDxn8J5iPcP1NfbdExCNkaF40lAH 4EnjpJPLoHmVpzqbzNoofuCUjGlwUf2NO+/Z0= MIME-Version: 1.0 Received: by 10.90.198.4 with SMTP id v4mr984215agf.79.1256834225877; Thu, 29 Oct 2009 09:37:05 -0700 (PDT) In-Reply-To: <1256831917.22624.38.camel@samuel-laptop> References: <1256808892.22624.32.camel@samuel-laptop> <1256831917.22624.38.camel@samuel-laptop> Date: Thu, 29 Oct 2009 17:37:05 +0100 Message-ID: To: Samuel ROZE Cc: Alexey Zakhlestin , internals@lists.php.net Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] PHP modules (pecl) and PHP codes (pear) From: patrick.allaert@gmail.com (Patrick ALLAERT) 2009/10/29 Samuel ROZE : > Le jeudi 29 octobre 2009 =C3=A0 14:03 +0300, Alexey Zakhlestin a =C3=A9cr= it : >> Usually, it is a good idea to write it in PHP at first and then port >> to C, if performance is poor > > But I lose some time ! (Reposting with ML included.) Yes, but as far as a PHP extension may take hundreds time to develop than a PHP function. If the PHP version is fast enough, you will win a huge amount of time, if not, you will only lose less than 1% of the overall dev time. The computation is quite easy. What is your reqs/second target ? -- Patrick Allaert --- http://code.google.com/p/peclapm/ - Alternative PHP Monitor