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
When encoding/decoding very big objects or arrays, it can take some time. In clients (UI or CLI apps) it would be reasonable to show a progress indicator for long running tasks like that.
Since JSON(De|En)coder and PropertyList(De|En)coder are both in Foundation, this API could make use of the Progress API in Foundation. But it could also just be a closure which is called with the progress in percent.
I'm not sure how easy it is to calculate the actual progress though as JSON(De|En)coder are using JSONSerialization under the hood which is also not providing an API for progress updates. In theory it could be calculated by dividing the number of processed bytes by the (known) number of total bytes.
The text was updated successfully, but these errors were encountered:
Environment
Swift 4.2
Additional Detail from JIRA
md5: b1b3ac88e51258a488668c23b049a4ef
Issue Description:
When encoding/decoding very big objects or arrays, it can take some time. In clients (UI or CLI apps) it would be reasonable to show a progress indicator for long running tasks like that.
Since JSON(De|En)coder and PropertyList(De|En)coder are both in Foundation, this API could make use of the Progress API in Foundation. But it could also just be a closure which is called with the progress in percent.
I'm not sure how easy it is to calculate the actual progress though as JSON(De|En)coder are using JSONSerialization under the hood which is also not providing an API for progress updates. In theory it could be calculated by dividing the number of processed bytes by the (known) number of total bytes.
The text was updated successfully, but these errors were encountered: