Why Core Data is Faster Than SQLite

I have a very simple question for iPhone dev. Why is Core Data faster than SQLite, although CoreData uses SQLite under the hood?

+3
source share
1 answer

The key is the optimization that Apple has implemented in Core Data. It makes very smart 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 rebuild all the optimizations that Apple engineers, who were very familiar with, the platform created.

+6
source

Source: https://habr.com/ru/post/1780622/


All Articles