You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by Kuntal Loya <ku...@gmail.com> on 2010/11/11 12:53:58 UTC
Save the base Uri for a document in the AbsolutePathReferenceVisitor
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