The visitChildren() method of MarkupContainer showed up as a hotspot in yourkit. By changing the implementation from use of an iterator object to use of children_*() methods, I was able to get the hotspot to disappear from the list of hotspots.