Jump to content

  • Log In with Google      Sign In   
  • Create Account


#Actualshuma-gorath

Posted 23 April 2013 - 10:38 AM

If you were to change "type" to a pointer, you could take advantage of a compiler optimization called "string pooling."  So, regardless of how many CollectionItem instances you have, there will only be one copy of the string in memory for each derived type.


#1shuma-gorath

Posted 23 April 2013 - 10:24 AM

If you were to change "type" to a pointer, you could take advantage of a compiler optimization called "string pooling."  So, regardless of how many CollectionItem instances you have, there will only be one copy of the string in memory.


PARTNERS