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();
|
||||
if (child.isEmpty())
|
||||
remove.add(child);
|
||||
else
|
||||
child.numberChildren();
|
||||
}
|
||||
children.removeAll(remove);
|
||||
children.sort(new ElementSortComparator(this, this.property));
|
||||
|
|
Loading…
Reference in New Issue