>CODE 1
>
>function test():void{
> var loop:int = 0;
>var i:int = 0;
>var j:int = 0;
>var now:Date = new Date();
>var d:Number = 1.1;
>for(i=0;i<10;i++){
>for(j=0;j<10000000;j++){
>
> (d*=1.0000001)>1;
>}
>now = new Date();
>
>text.text+=(""+now.getTime()+" "+d+"\n");
>}
>}
>
>CODE 2
>
>function test():void{
>
>var loop:int = 0;
>var i:int = 0;
>var j:int = 0;
>var now:Date = new Date();
>var d:Number = 1.1;
>for(i=0;i<10;i++){
>for(j=0;j<10000000&&(d*=1.0000001)>1;j++){
>
>
>}
>now = new Date();
>
>text.text+=(""+now.getTime()+" "+d+"\n");
>}
>}
>
>RESULT
>1
>1265207560811 2.9901098635452765
>1265207562139 8.127960905517952
>1265207563374 22.094087340094895
>1265207564593 60.05795316514031
>1265207565764 163.25443467583585
>1265207567061 443.7715412652174
>1265207568389 1206.2960569981067
>1265207569624 3279.052489441804
>1265207570921 8913.38835614975
>1265207572124 24229.100401210693
>
>2
>1265207634858 2.9901098635452765
>1265207634968 8.127960905517952
>1265207635077 22.094087340094895
>1265207635171 60.05795316514031
>1265207635280 163.25443467583585
>1265207635374 443.7715412652174
>1265207635483 1206.2960569981067
>1265207635577 3279.052489441804
>1265207635686 8913.38835614975
>1265207635780 24229.100401210693
>
>Do anyone know what's the cause.
This is because the test is run under debug mode, after I export the project as
release build the problem is gone.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know
on the House of Fusion mailing lists
Archive: http://www.houseoffusion.com/groups/flex/message.cfm/messageid:6255
Subscription: http://www.houseoffusion.com/groups/flex/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.37