Staredit Network

Staredit Network -> UMS Assistance -> Recycling Strings and Safety
Report, edit, etc...Posted by Endarire on 2005-02-22 at 13:37:56
First, assumedly recycling the same string, such as UPGRADE, will be safe, but what about UPGRADE and EVOLVE, assuming they're different things? How does recycling work?

-EE
Report, edit, etc...Posted by Daedalus on 2005-02-22 at 14:53:59
QUOTE(Endarire @ Feb 22 2005, 07:37 PM)
First, assumedly recycling the same string, such as UPGRADE, will be safe, but what about UPGRADE and EVOLVE, assuming they're different things?  How does recycling work?

-EE
[right][snapback]150987[/snapback][/right]

I don't really get you.... could you be a little bit more clear ? thx smile.gif
Report, edit, etc...Posted by (U)Bolt_Head on 2005-02-22 at 14:59:52
why don't you reply to some of your own threads instead of making a whole bunch about the same thing.
Report, edit, etc...Posted by Heimdal on 2005-02-22 at 20:53:31
Normally in staredit, every string has it's own "slot" in the file, even if the contents of two strings are identical. This ensures that when you change one string, it doesn't change something else. "Recycling" strings means that every string that has the same contents will actually use the same memory in the file, reducing the total number of strings used. It will also mean that if you ever want to change this string, it will change everything that is using it.

For a final production, recycling strings is completely safe, and you can even remove all comments, locations, and switch names. But if you're in the middle of production, recycling could be dangerous in case you want to change the value of one string and not the other one later.
Next Page (1)