Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(746)

Issue 3015041: Save the base Uri for a document in the AbsolutePathReferenceVisitor (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
15 years, 1 month ago by Kuntal Loya
Modified:
15 years, 1 month ago
Reviewers:
dev, dev-remailer, gagan.goku
CC:
cool-shindig-committers_googlegroups.com, anupama.dutta
Base URL:
http://svn.apache.org/repos/asf/shindig/trunk/
Visibility:
Public.

Description

Currently, 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -5 lines) Patch
M java/gadgets/src/main/java/org/apache/shindig/gadgets/rewrite/AbsolutePathReferenceRewriter.java View 1 2 chunks +12 lines, -2 lines 0 comments Download
M java/gadgets/src/main/java/org/apache/shindig/gadgets/rewrite/AbsolutePathReferenceVisitor.java View 1 2 chunks +9 lines, -3 lines 0 comments Download

Messages

Total messages: 9
gagan.goku
LGTM++ Please also mention the improvement in latency you got with this change. Also, if ...
15 years, 1 month ago (2010-11-10 15:14:38 UTC) #1
Kuntal Loya
15 years, 1 month ago (2010-11-11 07:09:00 UTC) #2
Kuntal Loya
http://codereview.appspot.com/3015041/diff/1/java/gadgets/src/main/java/org/apache/shindig/gadgets/rewrite/AbsolutePathReferenceRewriter.java File java/gadgets/src/main/java/org/apache/shindig/gadgets/rewrite/AbsolutePathReferenceRewriter.java (right): http://codereview.appspot.com/3015041/diff/1/java/gadgets/src/main/java/org/apache/shindig/gadgets/rewrite/AbsolutePathReferenceRewriter.java#newcode40 java/gadgets/src/main/java/org/apache/shindig/gadgets/rewrite/AbsolutePathReferenceRewriter.java:40: return Arrays.<DomWalker.Visitor>asList( On 2010/11/10 15:14:39, gagan.goku wrote: > could ...
15 years, 1 month ago (2010-11-11 07:09:21 UTC) #3
anupama.dutta
LGTM.
15 years, 1 month ago (2010-11-11 09:42:43 UTC) #4
gagan.goku
Looks nice, send out to dev@ On Thu, Nov 11, 2010 at 12:39 PM, <kuntal.loya@gmail.com> ...
15 years, 1 month ago (2010-11-11 10:39:48 UTC) #5
gagan.goku
Looks nice, send out to dev@ On Thu, Nov 11, 2010 at 12:39 PM, <kuntal.loya@gmail.com> ...
15 years, 1 month ago (2010-11-11 10:42:10 UTC) #6
gagan.goku
Looks nice, send out to dev@ On Thu, Nov 11, 2010 at 12:39 PM, <kuntal.loya@gmail.com> ...
15 years, 1 month ago (2010-11-11 10:42:18 UTC) #7
gagan.goku
Looks nice, send out to dev@ On Thu, Nov 11, 2010 at 12:39 PM, <kuntal.loya@gmail.com> ...
15 years, 1 month ago (2010-11-11 10:42:40 UTC) #8
gagan.goku
15 years, 1 month ago (2010-11-14 18:35:26 UTC) #9
Build looking good.
Committed as r1035040.
Thanks for the patch.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b