What is the maximum storage capacity of a plist?

浪子不回头ぞ 提交于 2019-12-03 11:29:36

A plist can be of arbitrary length.

Apple, however, only recommend plists having a maximum size of a couple hundred KB:

"For situations where you need to store small amounts of persistent data—say less than a few hundred kilobytes—property lists offer a uniform and convenient means of organizing, storing, and accessing the data."

For data which is more memory intensive, they recommend the following:

"In some situations, the property-list architecture may prove insufficient. If you need a way to store large, complex graphs of objects, objects not supported by the property-list architecture, or objects whose mutability settings must be retained, use archiving."

plist is a file format. It is only constrained by the maximum file size. The way it's read and written poses another constraint: the memory available to hold serialized objects.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!