From: alin w. <ali...@ca...> - 2004-10-27 20:10:49
|
> Calling class methods is no more expensive than calling a normal > function, except in the case of virtual methods where the cost is > exactly one pointer dereference (which is negligable in all but the mos= t > extreme cases). >=20 > Accessing class data is exactly the same as accessing struct members. > Classes and structs in C++ are the same object, just with different > default access privelages (struct defaults to public, class default to > private). C++ is not Java, classes are a very low-level object. The > size of a class object with just 4 int members is exactly the size of 4 > ints. >=20 > -DR- Thank's, you should be right, my slowdown performances came in fact from = non-inlined method, when I uninline my C functions my performances go awa= y. I didn't try with inlined method (too late/lazy now to rewrite the cod= e) but it should work the same. =09 A-LIN null Forfait AOL ADSL 5 M=E9ga =E0 22.90EUR/mois |