开发者

Why is Core Data faster than SQLite

开发者 https://www.devze.com 2023-01-31 02:03 出处:网络
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 i

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消