jhonny-me / plans

1 stars 0 forks source link

write a post about NSUserDefault on Medium #4

Closed jhonny-me closed 7 years ago

jhonny-me commented 7 years ago
jhonny-me commented 7 years ago

while checking out a friend's timeline, I happen to find this: http://online.stanford.edu/course/adventures-writing

adding to this issue requirements

jhonny-me commented 7 years ago

Drafts:

jhonny-me commented 7 years ago

In fact, the performance issue is not caused by NSUserDefaults but some hidden archive/unarchive and encrypt/decrypt, because NSUserDefault load data to memory and when modify, the data is not written directly back to disk but in some spectacular time, that's why the synchronize() exits.

Put all cost much time tasks in another thread is always good.

closing as done.