[PerlChina] Perl的算数运算效率

Qiang (James) shijialee at gmail.com
Sun Oct 12 22:49:13 PDT 2008


bruce wrote:
> 请问有没有人比较过Perl的算数运算和C语言的算数运算效率?
> 
> 特别是这几个运算  :   +  -  *  /  次方  开方  和  取对数
> 
> 我用Perl写了一个程序 需要大量的计算 但是速度不太满意  不知道如果改用C来写会好多少?
> 

CPAN 上有很多 XS 的数学模块。 比如 Math::GSL。 另外不知道你是否用到,PDL 
也不错, http://pdl.perl.org/


> 谢谢
> 
> Bruce Cheng



-- 
Qiang(James)


More information about the China-pm mailing list