Skip to content

Eliminate duplicate style validation during style loading #3151

Closed

Description

@jfirebaugh

In looking into #2991, I noticed duplicate work being put into style validation on the main thread during startup. First, the entire style is validated via validateStyle(stylesheet). Then, each individual source, layer, and property is re-validated, via addSource and StyleLayer.create. The revalidation is unnecessary duplicate work. After validating the complete style up front, style loading should use code pathways for initializing sources and layers that don't perform the validation that are required by the public runtime styling APIs.

Activity

  1. added
    performance ⚡
    on Sep 6, 2016
  2. changed the title [-]Duplicate style validation during style loading[/-] [+]Eliminate duplicate style validation during style loading[/+] on Sep 6, 2016
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