If I have say a property assignment which goes through several function callssuch as
MyLocalVariable->GetAF()->GetB()->GetC()->SetHealth (Health/100.0f);
When I compile this, is the comiler smart enough just to grab the end method, or does it really put into code all these intermediate method calls?
In such a case, for methods that I am repeatedly calling like this say on Tick, It will be much more efficient to cache a local pointer of the final method or property I am writing too. ???
Hope that makes sense, Thanks