Author Topic: Are there any limitations to object ID numbers?  (Read 1417 times)

If I have a database with 1,300 ScriptObjects, each with 40 variables, how much money memory could I save by switching to Gieco global variables?
Well "A few dozen bytes" * 1300 + "a few bytes" * 1300 * 40 is aproximately 200KB.
« Last Edit: June 05, 2015, 03:51:13 PM by Ipquarx »

The reason I ask is that I'm making a script that can possibly generate 10,000+ (or maybe even 100k+) objects. Is there a good way to figure out how much memory I'd be using? What's the exact size of an empty object and what's the overhead size of a field?

I've never really needed to worry about memory usage in TS before. Is there any way to properly free memory?

I doubt you're going to need to constantly need to access 10,000+ objects. Learn about memory paging.

Honestly unless you're making millions of objects, each with thousands of fields, you don't really have to worry about memory usage. At that point performance and efficiency is more important than memory usage.