Barry Evans

Results 645 comments of Barry Evans

Holding objects or integers in the lists make no difference to the memory size of the runtime. The objects are actually object references that occur the same number of bytes...

Yes using references will need more lookups in the file but does it matter the file size? But if you want to make a change then create a new class...

OK but I think we need to be careful to concentrate of completing the problems with the recent changes. I'm still get Concurrent modification exception and warnings about cannot retrieve...

The theory is correct. We just need to reconstruct the list once the UnitManager has been restored, not before. But I agree let's park this for now and try a...

I have got a generic solution running that will help with the save size; based on the same principle of only serializing the Unit ids. If it works; we can...

We can use the new ```UnitSet``` for other Sets of Units, e.g. citizens in Settlements, Person in Vehicles.

> After converting it to using UnitSet, I make that set _transient_, right ? No . The UnitSet property still needs to be serialised so it can not be transient....

> Can you write a UnitMap for handling Maps ? > > This way, we can truly apply that across the board. Yes we just to create an equivalent for...

It does save runtime memory only serialisation size. It only serialised the identifiers on Units instead of the object reference. That in itself doesn't save space but there is no...

Of course one thing we need to be careful of is excessive object references in serialised objects. Whether an object is one of our classes or a base like String...