[PerlChina] Perl的算数运算效率

katkat lim limkatkat at gmail.com
Sun Oct 12 21:40:12 PDT 2008


看看CPAN上有没有对应的模块吧,用perl写大量计算不是很靠谱。

2008/10/13 agentzh <agentzh at gmail.com>

> 2008/10/13 bruce <bruce1914 at gmail.com>
>
>> 请问有没有人比较过Perl的算数运算和C语言的算数运算效率?
>>
>
> 不太具有可比性吧?呵呵
>
>
>> 特别是这几个运算  :   +  -  *  /  次方  开方  和  取对数
>>
>> 我用Perl写了一个程序 需要大量的计算 但是速度不太满意  不知道如果改用C来写会好多少?
>>
>
> 根据经验,少得一个数量级,多则两到三个数量级。应该会好不止一点点,呵呵。
>
> -agentzh
>
> _______________________________________________
> China-pm mailing list
> China-pm at pm.org
> http://mail.pm.org/mailman/listinfo/china-pm
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/china-pm/attachments/20081013/8ffcb90e/attachment.html>


More information about the China-pm mailing list