Yes very good points on both and like Empty  , small strings ( which have a 
high amount of duplication)  can be effectively interned to a single reference 
also. 

Ben 

>
 >Since strings are immutable and all empty strings are the same you can
 >always reference the *same* empty string.
 >
 >Short strings sure will have some overhead but they do in any language
 >which uses scalable representation of strings and it does not seem to
 >be a huge problem. Also since you are presenting and *interface* you
 >can optimize cases which turn out to be problematic later.
 >
 >One of rather straightforward optimizations may be to represent
 >strings which aren't split into multiple parts by a simpler object.
 >
 >Thanks
 >
 >Michal


_______________________________________________
bitc-dev mailing list
[email protected]
http://www.coyotos.org/mailman/listinfo/bitc-dev

Reply via email to