mapbox / mapbox/MapboxGeocoder.swift

MBPlacemark should store property values parsed from GeoJSON

未关闭
#24 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

主要语言
Swift
星标
133
派生
46
PR 合并指标
30 天内没有已合并 PR

描述

Each property that’s parsed out of MBPlacemark’s backing GeoJSON is potentially expensive, especially when accessed frequently. It’s easy to come up with a pathological case that involves putting addressDictionary fields into a table view cell. Since the backing GeoJSON is immutable, these property values should be lazily computed then stored for the lifetime of the object.

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

定位 MBPlacemark,并检查其底层 GeoJSON 如何提供 addressDictionary 等属性。确认哪些值会在重复访问时重新计算,然后添加生命周期缓存,同时保留现有的属性行为。当重复访问属性不再重新解析不可变的 GeoJSON 时,即表示完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
swift
领域
mobile-dev
Issue 类型
重构
难度
2/5
预计耗时
1-3 小时
活跃度
停滞
描述清晰度
基本清楚
新手友好度
45/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。