﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	resolution	keywords	cc	phab_field
5979	Don't initialise null/boolean values in components.	Freagarach		"In many JS components there are a lot of variables created on init that are not strictly necessary.

E.g. in `ResourceGatherer`: `this.lastCarriedType = undefined;`.

There are more such examples of which some can have more effect on performance. It would be good to not initialise such values, but create them when needed and delete them when not needed anymore. This saves time on init and serialisation data during a game. (Refs. #3834.)

Also booleans are a good example of variables that need not to be initialised."	enhancement	new	Should Have	Alpha 25	Simulation		simple		Phab:D3468
