Hi,
I’m asking is there a guideline to reduce the memory usage of your tables in general. I’m trying to create an application where it generally creates thousands of instances of tables.
By tables I mean objects/classes. This is a typical class construct that I do in Lua based on some OOP with Lua tutorial :
function classFoo()
local instance={
member1=0,member2,.....
}
instance:method1()
end
instance:method2()
end
instance:method3()
end
.....
end
As the class gets complicated I added more methods and members and my memory usage just shoot through the roof
Is there a guideline on what/what not to do if I don’t want Lua to use much memory?
Thanks [import]uid: 76697 topic_id: 33064 reply_id: 333064[/import]