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.

Use stale Sprites + JSON #2722

Closed
Closed

Description

@kkaefer

With #2617 in place, we now get stale data from the cache. Currently, stale sprites and the associated metadata JSON isn't used, but we should change this. Things to consider:

  • The easy case is when the refreshed request returns a 304. In this case, we don't have to do anything.
  • The hard case is when we get a different response. Sprites that change may have different metrics. That means we'll have to reparse any layers that used icons
  • The same is true for the Sprite Atlas: We need to update the Sprite stored in the atlas, and probably assign a different position. Note that this only applies when the actual dimensions of a sprite changed, or when there were sprites removed or added in the new data.

Activity

  1. added
    performance
    on Oct 22, 2015
  2. kkaefer commented on Jan 7, 2016

    @kkaefer
    MemberAuthor

    Implemented as part of #2721.

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

    performance

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions