Perf tuning: skip numberChildren
hapifhir#1699 defer numberChildren to end of transform
This commit is contained in:
parent
b75e401090
commit
d90c6b3a07
|
@ -950,6 +950,8 @@ public class Element extends Base implements NamedItem {
|
||||||
child.sort();
|
child.sort();
|
||||||
if (child.isEmpty())
|
if (child.isEmpty())
|
||||||
remove.add(child);
|
remove.add(child);
|
||||||
|
else
|
||||||
|
child.numberChildren();
|
||||||
}
|
}
|
||||||
children.removeAll(remove);
|
children.removeAll(remove);
|
||||||
children.sort(new ElementSortComparator(this, this.property));
|
children.sort(new ElementSortComparator(this, this.property));
|
||||||
|
|
Loading…
Reference in New Issue