thoughtbot/Argo

Make decoding lazy

オープン

#185 opened on 2015/07/31

 (1 件のコメント) (0 件のリアクション) (0 人の担当者)Swift (214 件のフォーク)batch import
enhancementhelp wanted

Repository metrics

Stars
 (3,455 個のスター)
PR merge metrics
 (30d に merged 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.

コントリビューターガイド