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
Uh... I just tried the latest DefaultsMacro and found that it brings too much performance burden (during the decoding process) comparing to use Combine-based Defaults.publisher() if the value type stored in the key is a complicated codable class / struct. I wonder what your suggestion is for replacing Defaults.publisher().
Activity
[-]Version 8[/-][+]Version 10[/+]ShikiSuen commentedon Jan 14, 2025
Uh... I just tried the latest
DefaultsMacroand found that it brings too much performance burden (during the decoding process) comparing to use Combine-basedDefaults.publisher()if the value type stored in the key is a complicated codable class / struct. I wonder what your suggestion is for replacingDefaults.publisher().sindresorhus commentedon Jan 14, 2025
Defaults.updates()is the replacement ofDefaults.publisher().ShikiSuen commentedon Jan 15, 2025
@sindresorhus Thanks for your suggestion. I wonder the following example of API migration is correct. Could you please help me take a look?
sindresorhus commentedon Jan 15, 2025
Each
Defaults.updates()needs a separateTask.