David Megginson <[EMAIL PROTECTED]> said:

> Here are some tests I just ran, for 100,000,000 accesses of a double
> property (I ran each on a few times then picked the most typical user
> time; there was little variation anyway):
> 
>   Tied to object methods: 5.880 sec
>   Internal (access only): 2.870 sec
>   Internal (1:1 get:set ratio): 3.74 sec
>   Internal (10:1 get:set ratio): 3.07 sec
> 

http://www.garloff.de/kurt/freesoft/gcc/

This article is pretty basic and makes a good point on performance.  When the
size of the compiled code bloats because of excessive inlining, then..."you
may lose performance, because more instructions have to be loaded from memory
and the likelihood to find them in the faster instruction-cache of your CPU is
smaller."

Makes sense.

Best,

Jim


_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to