核心数据vs Sqlite和性能 [英] Core Data vs Sqlite and performance

查看:101
本文介绍了核心数据vs Sqlite和性能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否有任何人有任何真实世界数字的性能差异之间的一个旧的sqlite应用程序,已经转换为3.0 SDK中的Core Data。

I am wondering if anyone has any real world numbers on performance differences between an old sqlite application which has been converted to Core Data in the 3.0 SDK.

我怀疑在核心数据只是使用sqlite反正,它增加了一点开销为方便的成本,但我想我会问任何问题。

I suspect that under the hood Core Data is just using sqlite anyways and that it add's a bit of overhead for the cost of convenience, but i thought i would ask anyways.

推荐答案

Core Data在缓存,延迟加载和内存管理方面进行了大量优化。

Core Data is heavily optimized with regards to caching, lazy-loading and memory management.

如果你使用它(与SQLite存储类型),尤其是与NSFetchedResultsController结合,你应该得到比你自己可以得到更好的性能。SQLite。

If you use it (with the SQLite store type), especially in conjunction with NSFetchedResultsController, you should get better performance than you could get with SQLite on your own.

苹果已经努力使Core Data在iPhone上表现良好。我的应用程序从SQLite w / FMDB切换到Core Data,现在更快,更稳定,代码更少。

Apple has worked hard to make Core Data perform well on the iPhone. My application switched from SQLite w/ FMDB to Core Data and it is now faster and more stable with less code.

这篇关于核心数据vs Sqlite和性能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆