Files
Elie Habib 61a2b5f286 perf(map): lazy supercluster init, memoize filterByTime, lazy static layers (#1985)
Avoid wasted startup work for non-tech variants and reduce per-render
cost in buildLayers():

- Remove eager rebuildTechHQSupercluster/rebuildDatacenterSupercluster
  from map load and basemap-switch handlers; build lazily in
  updateClusterData() only when the exact conditions are met
- Add WeakMap-backed filterByTimeCached() with 1-minute time bucket;
  replaces 10 inline filterByTime() calls in buildLayers()
- Rewrite GlobeMap.initStaticLayers() to delegate to
  ensureStaticDataForLayer(), skipping datasets for disabled layers;
  hook into setLayers() and enableLayer() for lazy init on first enable
2026-03-21 15:32:51 +04:00
..