The difference between make_shared_binary_string and make_shared_string is obvious enough, I think. The difference between MAKE_CONSTANT_SHARED_STRING and the others is that it takes a string literal (which might contain \0), and that it doesn't redo the string allocation/hashing work if it's executed more than once.
/ Martin Stjernholm, Roxen IS
Previous text:
2003-01-12 18:44: Subject: Making strings
There appears to be several ways to create constant strings.
MAKE_CONSTANT_SHARED_STRING make_shared_binary_string make_shared_string
What are the practical differences?
/ Martin Nilsson (Åskblod)