Re: New extension for VoIP Asterisk Manager ( Request for comments )
| From: | Wez Furlong | Date: | Wed, 03 Jan 2007 03:24:56 +0000 |
| Subject: | Re: New extension for VoIP Asterisk Manager ( Request for comments ) | ||
| References: | 1 2 3 4 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-4433@lists.php.net to get a copy of this message | ||
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?
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.