简体   繁体   中英

Core Data vs. Dictionary

Is there any performance difference between querying using object for Key on an NSDictionary vs. a Fetch Request on Core Data? is there any performance difference in storing them the same ways?

Please note, I'm only asking about performance, not about code design or organization.

Thanks!

An NSDictionary is stored entirely within RAM memory. Core Data could be stored in a SQLite database which could cause a bit of latency that you would not get from just an NSDictionary.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM