Array or database Table? Store the temporary data in memory array or database?

I have about 300 lines of 60 characters. Can I download them directly in an array, or a better use of the database sqlite? whether memory will sustain? How better to describe the type of optimization?


I believe you're looking at 300(Strings) * 60(characters) * 2bytes(per character) = 36KB

I believe android limits applications to 12MB in memory? So you're using 0.3% of your memory capacity by using an array. I'd say that's well within budget.

Need Your Help

JsonIgnore attributes not working in ASP.NET?

c# json

I've got an object in my project with circular references. I've put [JsonIgnore] above the field like so: