pointers to objects are being passed significantly slower than objects themselves |
Is const reference like class ... int _kappa; ... int const& kappa = _kappa; ... somehow optimized by compiler? I would like it to not create any actual reference at all. Spent my time at this simplest question but didn't find a clear answer. |
references (costant or not) can be optimised away by compiler but it is not required to do so. Generally references in same scope and passed to inlined functions are optimised away entirely. For others you will need to look into resulting code to see if that particular instance was optimised away. |
you are being rude |
|
|
|
|