thoughtbot/Argo

Make decoding lazy

开放

#185 创建于 2015年7月31日

 (1 条评论) (0 个反应) (0 位负责人)Swift (214 个派生)batch import
enhancementhelp wanted

仓库指标

星标
 (3,455 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

Now we have parse the whole JSON value into the JSON type, but then you have a lot of overhead when you have a lot of properties that you don't use. I tried this with a type DecodableValue that has a helper method to cast the data of the DecodableValue to the type that you want. DecodableValue replaces JSON and also saves a lot of looping and switches.

贡献者指南