Saving many attributes - iPhone
IsabelleK
Member, Sous Chef Posts: 2,807
Hello, did anyone ever checked how many attributes is safe to save at once (iPhone)?
I'm asking because I need to save about 20-30 attributes in the same moment, and I'm wondering if this amount isn't too big.
Thank you.
I'm asking because I need to save about 20-30 attributes in the same moment, and I'm wondering if this amount isn't too big.
Thank you.
Comments
the ranges you may encounter difficulties, IF THEY EXIST, would be:
Number of attributes:
256 (1 byte memory range [not likely])
65,536 (2 byte memory range, 16-bit [maybe])
4,294,967,296 (4 byte memory range, 32-bit [most likely])
no limit [very most likely]
However, I doubt you are going to find such limitations as it would be artificial.
Test it! Let us know what you find out
I don't know how Gendai built persistent storage, but my HOPE is that they used the CoreData framework that is part of CocoaTouch, if so then there is no limit to what you can do for storage. For performance reasons I would not store values in persistent storage over and over again with only a nano-second apart (like in a 1/2s timer or something). Although I believe CoreData is buffered.
I'm very curious to know what the results of your tests are.
So 256 is definitely OK. I'll let somebody else test the higher numbers...:0)