Skip to content

Should SSLContext construction be deferred during OkHttpClient construction #8231

Open
@yschimke

Description

@yschimke

https://www.zacsweers.dev/dagger-party-tricks-deferred-okhttp-init/

OkHttpClient initialization can take upwards of 100ms on some Android devices in the wild due to its use of TrustManagerFactory. Initializing the Cache is also not free, as it creates an internal Executor and may incur some disk IO if you want to prepare a cache directory for it first.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions