Optimized memory usage when having many Hookup Wire components

This commit is contained in:
Bane Stojkovic
2022-11-27 13:36:34 +01:00
parent 0c53c8918a
commit 72a00087c3
5 changed files with 6 additions and 2 deletions
@@ -4194,6 +4194,10 @@
<changeType>IMPROVEMENT</changeType>
<description>Potentiometer bodies are no longer considered as conductive surfaces to avoid unwanted shorts</description>
</org.diylc.appframework.update.Change>
<org.diylc.appframework.update.Change>
<changeType>IMPROVEMENT</changeType>
<description>Optimized memory usage when having many Hookup Wire components</description>
</org.diylc.appframework.update.Change>
<org.diylc.appframework.update.Change>
<changeType>IMPROVEMENT</changeType>
<description>Improved conductivity tracking of Terminal Strip</description>
Binary file not shown.
@@ -40,7 +40,7 @@ import org.diylc.utils.Constants;
@ComponentDescriptor(name = "Hookup Wire", author = "Branislav Stojkovic", category = "Connectivity",
instanceNamePrefix = "W", description = "Flexible wire with two control points", zOrder = IDIYComponent.WIRING,
flexibleZOrder = true, bomPolicy = BomPolicy.NEVER_SHOW, autoEdit = false,
transformer = SimpleComponentTransformer.class, enableCache = true)
transformer = SimpleComponentTransformer.class, enableCache = false)
public class HookupWire extends AbstractCurvedComponent<Void> implements IContinuity {
private static final long serialVersionUID = 1L;
@@ -156,5 +156,5 @@ public class HookupWire extends AbstractCurvedComponent<Void> implements IContin
@Override
public boolean arePointsConnected(int index1, int index2) {
return Math.abs(index1 - index2) == getControlPointCount() - 1;
}
}
}
Binary file not shown.
Binary file not shown.