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:
Michael Rebsamen 2024-07-23 11:22:59 +02:00 committed by mrunibe
parent c2aa01c02a
commit 18b4fc1714
1 changed files with 1 additions and 2 deletions

View File

@ -563,7 +563,6 @@ public class Element extends Base implements NamedItem {
} else {
Element ne = new Element(child).setFormat(format);
children.add(ne);
numberChildren();
return ne;
}
}
@ -1649,4 +1648,4 @@ public class Element extends Base implements NamedItem {
return this.elided;
}
}
}