页面

2013年12月23日星期一

Solidot: Asm.js性能逼近原生码

Solidot

奇客的资讯,重要的东西

Asm.js性能逼近原生码
http://solidot.org.feedsportal.com/c/33236/f/556826/s/351f7850/sc/28/l/0L0Ssolidot0Borg0Cstory0Dsid0F37740A/story01.htm
Dec 23rd 2013, 08:55

Asm.js是JavaScript的高性能子集,简化特性便于优化。Mozilla现在宣布,asm.js性能进一步逼近原生,asm.js的速度已达到原生码的三分之二,而以前只能达到二分之一甚至更低。Mozilla是通过改变浮点算法处理方式改进asm.js性能。JavaScript默认使用float64数据类型,以提供最大的数据精度,但相比范围较小的int、int32、float和float32数据类型,float64的效率并不高,Mozilla的SpiderMonkey引擎在asm.js中加入了float32数据类型,允许将C/C++程序中的float32算法直接翻译到asm.js的float32算法。Mozilla相信asm.js的性能还能进一步提升。This entry passed through the Full-Text RSS service — if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers.



You are receiving this email because you subscribed to this feed at https://blogtrottr.com

If you no longer wish to receive these emails, you can unsubscribe here:
https://blogtrottr.com/unsubscribe/cz0/jPbdSR

没有评论:

发表评论