Skip to content

Commit

Permalink
Perf tuning: skip numberChildren
Browse files Browse the repository at this point in the history
hapifhir#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
  • Loading branch information
mrunibe committed Oct 18, 2024
1 parent d0bbc93 commit 9c02184
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,6 @@ public Element makeElement(String name) throws FHIRException {
} else {
Element ne = new Element(child).setFormat(format);
children.add(ne);
numberChildren();
return ne;
}
}
Expand Down Expand Up @@ -1648,4 +1647,4 @@ public void setElided(boolean elided) {
public boolean isElided() {
return this.elided;
}
}
}

0 comments on commit 9c02184

Please sign in to comment.