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

Stop injecting @Assisted for openstack-swift

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.2.0
    • Fix Version/s: None
    • Component/s: jclouds-blobstore
    • Labels:

      Description

      Warning claims speed bump

      com.google.inject.assistedinject.FactoryProvider2 isValidForOptimizedAssistedInject WARNING: AssistedInject factory org.jclouds.openstack.swift.v1.blobstore.config.SwiftBlobStoreContextModule$Factory will be slow because class org.jclouds.openstack.swift.v1.blobstore.RegionScopedSwiftBlobStore has assisted Provider dependencies or injects the Injector. Stop injecting @Assisted Provider<T> (instead use @Assisted T) or Injector to speed things up. (It will be a ~6500% speed bump!) The exact offending deps are: [Key[type=com.google.inject.Injector, annotation=[none]]@org.jclouds.openstack.swift.v1.blobstore.RegionScopedSwiftBlobStore.<init>()[0]]

      SwiftApi swiftApi = ContextBuilder.newBuilder("openstack-swift")   
       .endpoint(endpoint) 
       .overrides(overrides)
       .credentials(identity, "") 
       .modules(modules) 
       .buildApi(SwiftApi.class); 
      

      Is it valid warning?

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              integer Kanstantsin Shautsou
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: