Why is Core Data faster than SQLite
I have开发者_如何学Python a very basic question for iPhone dev. Why is Core Data faster than SQLite even though CoreData uses SQLite under the hood?
The key is in the optimisations that Apple has put in place in Core Data. It makes very intelligent decisions about items that should be cached for example.
Theoretically you could probably achieve the same performance without using Core Data, but it would take a very long time to re-build all of the optimisations that Apple engineers, who are very familiar was the platform, have put in place.
精彩评论