- Home /
Does serializing objects use up more memory?
I'm not sure how to ask this question or if it makes sense but does having a bunch serialized objects use up more memory/ram than references to objects or do they end up being the same? If I understand correctly, if I have a bunch variables and make them reference an object, the memory used up will be the references and the object will have it's own. Does it make any difference if the variables are of serialized objects? Will each variable need to have it's own memory to "contain" it's own object?
Answer by fafase · Nov 24, 2015 at 08:38 AM
Your question is more about are attributes using memory?
Answer is not. Attributes work on types so only one instance of the attribute is required for each type and is only created if reflection kicks in.
I would not bothered much about this issue.
Your answer
Follow this Question
Related Questions
Serialization of GameObject 1 Answer
Serializable class doesn't store list<> 1 Answer
Why do I need to serialize a struct inside a ScriptableObject to save its data? 1 Answer
Finding property with serializedObject on script with a generic 0 Answers
ScriptableObject with Custom Editor resetting data in inspector 1 Answer