作者A1pha ([αλφα])
看板Visual_Basic
标题[VB6 ] double的效率比single高?
时间Tue Aug 10 11:36:17 2010
我一直以来好像误会了@@"
我一直以为说,
资料型态所使用的位元组最多,效率越差...
但是我刚刚在网路上看到一分讲义,
上面却是写说Double的执行效率是所有分数(更该是指以小数点的)
里面最高的。
他是说因为目前平台上的处理器是以双精度浮点数来执行浮点运算。
真的是这样呀?@@
用single反而执行效率比较差这样吗?@@
--
"Every kid who has dreamed of being a baseball player has stood in his front
yard with a bat and said to himself, "Bottom of the ninth, Game 7 of the
World Series, the bases are loaded," and then envisioned hitting a home run
to win the game. My job is to shatter that dream."
By Huston Street
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 210.202.55.129
1F:推 fumizuki:我记得我自己测试过的结果是single double 差不多 08/10 12:48
2F:→ fumizuki:浮点数比整数效率高 08/10 12:49
3F:→ A1pha:是喔@@ 那份讲义是说整数效率最好QQ 08/10 14:33
5F:→ A1pha:不知道是不是我哪里看错还是误会了...囧 08/10 14:35
6F:推 SmallBeeWayn:指令长度一样,速度应该差不多 08/11 04:35