Skip to content

Commit

Permalink
Perf tuning: skip numberChildren
Browse files Browse the repository at this point in the history
hapifhir#1699 defer numberChildren to end of transform
  • Loading branch information
mrunibe committed Nov 2, 2024
1 parent b75e401 commit d90c6b3
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -950,6 +950,8 @@ public void sort() {
child.sort();
if (child.isEmpty())
remove.add(child);
else
child.numberChildren();
}
children.removeAll(remove);
children.sort(new ElementSortComparator(this, this.property));
Expand Down

0 comments on commit d90c6b3

Please sign in to comment.