
Posted:
Jul 5, 2006 @ 8:50pm
by joshbu [MSFT]
Functional concern:
Does the class Object define operator=?
If not, you're getting a compiler generated operator, which is a simple member copy. This can be bad: for example, if one of the members is a HANDLE to a Win32 object that is destroyed in the Object destructor.
Performance concern:
Do you have profiling data that suggests that the call into Object::method is a hot spot?
In most cases, Smartphone/PocketPC apps are not CPU bound: they are memory bandwidth bound. So things like cache coherentcy can matter much, much more than trying to save cycles on method calls.