Reviewers: dev_shindig.apache.org,

Save the base Uri for a document in the AbsolutePathReferenceVisitor

While the AbsolutePathReference absolutifies the Uris in a document, each
time
the base uri was computed.
Saving a reference to the once computed baseUri 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 makeVisitor).

Please review this at http://codereview.appspot.com/3015041/

Affected files:
 M
 
java/gadgets/src/main/java/org/apache/shindig/gadgets/rewrite/AbsolutePathReferenceRewriter.java
 M
 
java/gadgets/src/main/java/org/apache/shindig/gadgets/rewrite/AbsolutePathReferenceVisitor.java

Reply via email to