mars-sim
mars-sim copied to clipboard
Reduce CPU utilization
Describe the Improvement
- Hunt down any method calls that utilize excessive resources
- Optimize CPU utilization
Expected and unexpected behavior
- Lower the % CPU utilization of the JVM task that hosts mars-sim on local machine
Java classes and methods involved
- determineConstructionParts() in
MaufactureConstructionMaterials - excessive calling of getAmountResourceRemainingCapacity() in
EquipmentInventory - getAllConstructionStageInfoList() in
ConstructionUtil
Screenshots




Specifications
- pre-3.4.0 build 7118