Fwd: [PECL-DEV] New extension for VoIP Asterisk Manager ( Request for comments )

From: Date: Wed, 03 Jan 2007 15:34:42 +0000
Subject: Fwd: [PECL-DEV] New extension for VoIP Asterisk Manager ( Request for comments )
References: 1 2 3 4 5 6  Groups: php.pecl.dev 
Request: Send a blank email to pecl-dev+get-4435@lists.php.net to get a copy of this message
---------- Forwarded message ---------- From: Moises Silva <moises.silva@gmail.com> Date: Jan 3, 2007 8:33 AM Subject: Re: [PECL-DEV] New extension for VoIP Asterisk Manager ( Request for comments ) To: Wez Furlong <kingwez@gmail.com> On 1/2/07, Wez Furlong <kingwez@gmail.com> wrote:
On 1/1/07, Moises Silva <moises.silva@gmail.com> wrote: With C is lot more fun :) Much more fun :) Seriously, I already have an event oriented framework using PHP classes with standard network functions, but I havent made benchmarks to see differences in performance, my plan is do so. Using socket_XXX or stream_XXX functions?
I just talked about this with Sara Golemon, and im changing the extension to use php streams, she has explained to me the benefits I get by doing so, and I like it :)
For the company I used to work, I created a whole architecture in PHP based on manager events, and am not sure how well is going to perform in stress conditions. So basically 2 reasons lead me to write this. 1. I wanted to learn C and was looking for a small project to start. 2. I think in the future, under high loads of calls, the extension will make a difference in the VoIP servers. I suspect that the difference will be marginal from a performance perspective. With that in mind, it would be "better" to implement and maintain the code as PHP code. However, if the benchmarks do prove the C code to be significantly faster, then I recommend that you adopt the streams API functions for your socket interactions because they take care of a number of portability nuances for you. --Wez.
Yes, you may be right, I have no experience with C, so really dont know how much benefits I could get from this, time will tell. So the final question would be, is this worth to have it on pecl? Thank you very much for your time. Regards - moy -- "Su nombre es GNU/Linux, no solamente Linux, mas info en http://www.gnu.org"

« previous php.pecl.dev (#4435) next »