[asterisk-users] How to create a module

Tzafrir Cohen tzafrir.cohen at xorcom.com
Mon Jul 11 22:35:52 CDT 2011


On Mon, Jul 11, 2011 at 02:17:42PM -0700, Steve Edwards wrote:
>> El 08/07/11 12:50, Steve Edwards escribió:
>
>>> *) You can execute hundreds of AGIs written in C in the time it takes 
>>> to load the Perl interpreter and parse your script.
>
> On Fri, 8 Jul 2011, Miguel Molina wrote:
>
>> Just curious... have you timed this to demonstrate?
>
> What? You want to confuse the issue with facts?!?
>
> I did the comparison a really long, long time ago so I thought I should 
> do it again. I'll post the results as a new, more relevant thread.
>
> The 'quick take away' is that C is probably a couple of hundred times  
> faster than Perl in a really slow environment like a Soekris net4801.
>
> On more modern gear, the ratio falls to 30 to 100 times faster.

But that really depends on the task in hand. If the script is IO bound
anyway, a bit of extra CPU wouldn't matter that much.

-- 
               Tzafrir Cohen
icq#16849755              jabber:tzafrir.cohen at xorcom.com
+972-50-7952406           mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com  iax:guest at local.xorcom.com/tzafrir



More information about the asterisk-users mailing list