Perf tuning: skip numberChildren

hapifhir#1699 defer numberChildren to end of transform
This commit is contained in:
mrunibe 2024-07-29 20:45:27 +02:00
parent b75e401090
commit d90c6b3a07
1 changed files with 2 additions and 0 deletions

View File

@ -950,6 +950,8 @@ public class Element extends Base implements NamedItem {
child.sort();
if (child.isEmpty())
remove.add(child);
else
child.numberChildren();
}
children.removeAll(remove);
children.sort(new ElementSortComparator(this, this.property));