DescriptionCurrently, the base uri is recomputed for every Uri (node) which the AbsolutePathReferenceVisitor attempts to absolutify in a document.
Saving a reference to the once computed base uri in the Visitor will save the overhead of computing it for other nodes.
The Visitor should now be created afresh for every document content to be rewritten (in makeVisitors).
On our candidate set of html pages, we saw latency improvement of ~30% with this change.
Patch Set 1 #
Total comments: 6
Patch Set 2 : Use ImmutableList #
MessagesTotal messages: 9
|
||||||||||||||||||||||||||||