You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@jclouds.apache.org by "Andrew Gaul (Jira)" <ji...@apache.org> on 2022/06/19 23:39:00 UTC

[jira] [Updated] (JCLOUDS-1522) Stop injecting @Assisted for openstack-swift

     [ https://issues.apache.org/jira/browse/JCLOUDS-1522?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrew Gaul updated JCLOUDS-1522:
---------------------------------
    Affects Version/s: 2.5.0

>  Stop injecting @Assisted for openstack-swift
> ---------------------------------------------
>
>                 Key: JCLOUDS-1522
>                 URL: https://issues.apache.org/jira/browse/JCLOUDS-1522
>             Project: jclouds
>          Issue Type: Improvement
>          Components: jclouds-blobstore
>    Affects Versions: 2.2.0, 2.5.0
>            Reporter: Kanstantsin Shautsou
>            Priority: Major
>              Labels: swift
>
> Warning claims speed bump
> {quote}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]] 
> {quote}
> {code:java}
> SwiftApi swiftApi = ContextBuilder.newBuilder("openstack-swift")   
>  .endpoint(endpoint) 
>  .overrides(overrides)
>  .credentials(identity, "") 
>  .modules(modules) 
>  .buildApi(SwiftApi.class); 
> {code}
> Is it valid warning?



--
This message was sent by Atlassian Jira
(v8.20.7#820007)