Duplicate lines of data for stats of items does not effect performance right?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By jujumumu

I have these items and they all share the same stats. I could make each of them point to the same data but that would be kind of difficult with my features. So instead I have them each keep the same data. Does this affect performance?

:bust_in_silhouette: Reply From: kidscancode

This is a meaningless question to ask. Maybe it will, maybe it won’t. It’s impossible to say without making it both ways and testing thoroughly. And it may turn out that there are a dozen other things in your project that are more important, and you wasted hours worrying about something that makes no difference.

General rule: don’t worry about it. Just build your thing, and worry about performance if there’s an actual performance issue.

If you have an actual performance issue, that’s when you use profiling to identify what the real source of the issue is.