Very Large Tables?

I’m trying to make five very large tables of up to 4 million values each while saving each value to a new line in one of five text documents. The simulator had no problem with this, predictably. My iPhone4 and iPad2, however, run the apps and produce some unusual results.

The iPhone 4 stops adding values to the tables when each of them reaches i = 325000, plus or minus a few thousand. The iPad 2 stops adding values to the tables when each of them reaches i = 723000, plus or minus a few thousand. By “stopped adding values” I mean #(table name) returns those numbers and goes no higher. The app does not crash; it continues to run fine aside from that.

The iPad2 and iPhone4 have the same amount of memory, so I’m not sure what the problem is. I can live with a table smaller than 4 million, but working around unpredictably different maximum table sizes on every other device would be next to impossible. Any insights into this would be appreciated. [import]uid: 99903 topic_id: 22324 reply_id: 322324[/import]

Nevermind, crisis averted. Spreading the task out over twice the number of frames allowed the full tables to be populated by both devices. I probably should have waited until AFTER following this hunch before posting :stuck_out_tongue: [import]uid: 99903 topic_id: 22324 reply_id: 88927[/import]

Hey dyson122, I’m wondering if you have any performance stats about reading/writing that much data to a file on an iPhone4/iPad2? About how long does the operation take? Does it bring everything to a halt while working?

I am working on a word game and may very well have to access a file of tens or hundreds of thousands of words, and I’m hoping that I’ll be able to do it locally instead of sending requests to a server.

[import]uid: 120 topic_id: 22324 reply_id: 88951[/import]

Pulling that much data into tables to use from memory seems weird – that’s the kind of thing databases are made for.

If you’ve solved the problem, that’s cool, but for anyone else looking for answers about zillions of values in tables – look into databases. :slight_smile:

Jay
[import]uid: 9440 topic_id: 22324 reply_id: 88974[/import]