Hi,
I have a class named Data and it has some basic field like this:
class Data {
val i:Int;
val j:Int;
var flag: Boolean;
var value: Int;
// other fields and methods
}
My program will create many instances of Data, lets say 1 billion, which will
cost a lot of memory since every instance need extra spaces.
And i can’t use structs here because they are immutable but i need to update
fields of it.
So what can i do here ?
Is there a way to manage memory explicitly?
------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
_______________________________________________
X10-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/x10-users