Skip to content

Refactor "SourceCache" #2291

Closed
Closed

Description

@lucaswoj

The SourceCache class could use a big refactor (maybe even a ground-up rewrite) to

  • simplify and fix bugs in our wrapped tile retention system Ensure SourceCache reuses tiles across the dateline #1834
  • simplify our tile caching system to make it easier to reason about
  • create a cleaner API (the class currently includes some overly-complex methods, surprising side effects, and too-long argument lists)
  • improve testability
  • move all code that isn't related to tile caching into separate modules

ref #2287

Activity

  1. changed the title [-]Refactor TilePyramid[/-] [+]Refactor "SourceCache"[/+] on Aug 4, 2016
  2. jfirebaugh commented on Jun 23, 2017

    @jfirebaugh
    Contributor

    I think we should wholly revert the relationship inversion between Source and TilePyramid/SourceCache. Judging by the resulting complex coupling, this seems to have been an architectural mistake.

  3. anandthakker commented on Jun 26, 2017

    @anandthakker
    Contributor

    @jfirebaugh can you say more about this? I agree that the current coupling is not ideal, but it's not clear to me that inverting the dependencies would really eliminate it. Would another way to improve this might be to clarify and simplify the Source interface?

  4. mourner commented on Sep 11, 2019

    @mourner
    Member

    Closing as too vague — we should create new issues for any specific things we can improve.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions