Uploaded image for project: 'jclouds'
  1. jclouds
  2. JCLOUDS-358

Improve blob request signing performance

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 1.6.3
    • 1.7.0
    • jclouds-blobstore
    • None

    Description

      I ran an application which calls into jclouds for signing blob put requests (against the aws-s3 blobstore) and analyzed its performance using YourKit. The analysis shows that each request for signing blobs takes about 13 ms (average of 160K requests). > 10 out of these 13 ms are spent in the RestAnnotationProcessor. Mainly in RestAnnotationProcessor.apply() and RestAnnotationProcessor.decorateRequest(). Looking at the code, it seems that processing of all the annotations is done for every request, which also means that there is the Java Reflections overhead for every request.

      Are there options that we can explore to make this better; such as

      i) caching the output of the RestAnnotationProcessor and only updating fields that change in every request
      ii) not using java Reflections API

      Note that I am using jclouds-1.6.3-SNAPSHOT which includes the fixes for bug 301.
      https://issues.apache.org/jira/browse/JCLOUDS-301

      Attachments

        Activity

          People

            Unassigned Unassigned
            shrinand Shri Javadekar
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: