Experimental changes to IBM JAX-RS runtime base code for caching repeated 
requests
----------------------------------------------------------------------------------

                 Key: WINK-4
                 URL: https://issues.apache.org/jira/browse/WINK-4
             Project: Wink
          Issue Type: Improvement
            Reporter: Bryant Luk
            Assignee: Bryant Luk


I did some experimental changes this past week to the IBM JAX-RS runtime for 
caching calculations done in common operations.  Mostly using a 
ThreadLocal<LinkedHashMap> LRU cache to store things such as the root resource 
class, the method to invoke, and finding readers/writers.  The idea was a 
faster path for repeated requests (which I imagine most queries are).  Chris 
provided guidance on what seemed like good targets.

I also did a few bug fixes and made as much of the metadata classes immutable 
as possible while I was there.

I would like to discuss some of these possible architectural improvements (i.e. 
caching) next week that we can possibly adapt to whatever runtime we choose.  
This is not a vote for either runtime, it was just more convenient at the time 
since I know more about the IBM code.  I don't guarantee that my code changes 
were all bug free =) since this was more of a hasty experiment.

I haven't got a chance to really look at the HP runtime to see if these 
improvements are applicable but I'll do that after this drop and check it out. 

-- 
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