Re: [PECL-DEV] Re: CouchDB extension

[email protected] (Kore Nordmann) Wed, 21 Apr 2010 12:40:48 +0200
Newsgroups php.pecl.dev
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 21/04/10 12:16, Andrew Colin Kissa wrote:
> On 21 Apr 2010, at 12:12 PM, Johannes Schlüter wrote:
>> I wonder what the benefit over a PHP implementation is. We have ways to
>> do the needed http calls from PHP and en-/decode json so the penalty by
>> plain PHP shouldn't bee tooo big whereas installation/maintenance
> 
> My understanding was doing it in C would provide better performance although
> i have not actually bench marked it

I doubt you'll see any benefit from a PHP extension. The relevant parts
(JSON-Encoding, HTTP-parsing) are already done in C. (json_decode,
PHP-Stream wrapper or curl).

Everything else left, is mostly waiting for the network. Which is the
same for PHP code an C code.

- From my point of view an extension is just harder to deploy and maintain
compared with PHP code, so that I see no reason for a PHP CouchDB
extension. On the other hand: It probably won't hurt.

Kind regards,
Kore

- -- 
Kore Nordmann                                        (GPG 0xDDC70BBB)
- - What I do:                   http://kore-nordmann.de/portfolio.html
- - Motivate me:                      http://wishlist.kore-nordmann.de/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkvO1jAACgkQgIJx893HC7vH0QCfV78yidwtX2mAFp9dZJt3Gkss
mpAAoJ+XRmoUi3x8fUH2mv1xx7ykeVHC
=7p4z
-----END PGP SIGNATURE-----