Perf tuning: skip numberChildren
hapifhir/org.hl7.fhir.core#1699 Workaround for performance issue with FML transform: Growing/large lists getting very slow due to numberChildren() getting called recursively for every element that is added to a list. merge upstream
This commit is contained in:
parent
c2aa01c02a
commit
18b4fc1714
|
@ -563,7 +563,6 @@ public class Element extends Base implements NamedItem {
|
||||||
} else {
|
} else {
|
||||||
Element ne = new Element(child).setFormat(format);
|
Element ne = new Element(child).setFormat(format);
|
||||||
children.add(ne);
|
children.add(ne);
|
||||||
numberChildren();
|
|
||||||
return ne;
|
return ne;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1649,4 +1648,4 @@ public class Element extends Base implements NamedItem {
|
||||||
return this.elided;
|
return this.elided;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue