Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Reuse HttpRequest, introduce HttpWebservice #9772

Closed

Description

@tobrun

Every time the Android SDK requests a tile we are creating a new instance of HttpRequest.java in https://github.com/mapbox/mapbox-gl-native/blob/master/platform/android/src/http_file_source.cpp#L88. While current setup allows to reuse the same OkHttpClient (static field), we should look into reusing the same object for all requests (service vs request approach). We should benchmark to validate if this change would be beneficial.

cc @zugaldia

Activity

  1. added
    Android
    on Aug 15, 2017
  2. tobrun commented on Mar 9, 2018

    @tobrun
    MemberAuthor

    This was closed because the benefits are non exisitint due to the way resources are scheduled by core.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Android

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions