You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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, viaaddSource
andStyleLayer.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.The text was updated successfully, but these errors were encountered: