Jump to content

  • Log In with Google      Sign In   
  • Create Account


#Actualtanzanite7

Posted 15 January 2013 - 02:10 PM

Did not think of "explicit" - nice. Now return value optimization is in action and actually removes even more than i hoped for smile.png.
new Obj
new Emit
get from Emit
new Wrap(T*)
del Wrap : 00556580
However, one problem remains - assignment still goes to places:
new Obj
new Emit
new Wrap(0)
get from Emit
new Wrap(T*)
Wrap to T*      - bananas
Wrap = T*
del Wrap : 005565C0
del Wrap : 005565C0
Is there something i could do to make it prefer the templated one?

edit: FFS, gamedev, fix the god-damn forum software - i have been around here ~10 years and i can not remember any time any of the forum software variations have ever worked fully. It is not even funny anymore.

#1tanzanite7

Posted 15 January 2013 - 02:05 PM

Did not think of "explicit" - nice. Now return value optimization is in action and actually removes even more than i hoped for <img data-cke-saved-src="http://public.gamedev.net//public/style_emoticons/default/smile.png" src="http://public.gamedev.net//public/style_emoticons/default/smile.png" class="bbc_emoticon" title=":)" />.<pre class="_prettyXprint _lang-code _linenums:NaN">new Obj
new Emit
get from Emit
new Wrap(T*)
del Wrap : 00556580</pre><br />However, one problem remains - assignment still goes to places:<pre class="_prettyXprint _lang-code _linenums:NaN">new Obj
new Emit
new Wrap(0)
get from Emit
new Wrap(T*)
Wrap to T* - bananas
Wrap = T*
del Wrap : 005565C0
del Wrap : 005565C0</pre>Is there something i could do to make it prefer the templated one?

PARTNERS