[ 
https://issues.apache.org/jira/browse/SHINDIG-586?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12630032#action_12630032
 ] 

John Hjelmstad commented on SHINDIG-586:
----------------------------------------

Missed the obvious point that headers is an unmodifiable map... discussion on 
shindig-dev.

> Avoid repeated checksum generation for cached HttpResponses by storing 
> checksum in HttpResponse object.
> -------------------------------------------------------------------------------------------------------
>
>                 Key: SHINDIG-586
>                 URL: https://issues.apache.org/jira/browse/SHINDIG-586
>             Project: Shindig
>          Issue Type: Improvement
>          Components: Gadget Rendering Server (Java)
>            Reporter: John Hjelmstad
>            Assignee: John Hjelmstad
>
> CachingContentRewriterRegistry uses checksums to generate rewritten-content 
> cache keys. In the case of HttpResponse rewriting, in practice the vast 
> majority of rewrites - and rewritten content cache lookups - are made using 
> cached HttpResponse objects.
> To avoid recomputing checksum for each of these requests simply to look up, 
> we can store checksum as a special header on HttpResponse (which is not 
> serialized on output) before caching it.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to