Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Best QM handling for arrays
#2
Will need to save in a file?
Will need to convert to/from string?

If both true, use CSV. Function ICsv.Find is quite fast for 100 items.
If not, maybe easier to use ARRAY of user-defined type or 2 dimensions. Will need to search with for(i 0 a.len)... It's maybe slower but quite fast for 100 items.

For large number of items faster would be IStringMap. But difficult if need >2 columns; need to somehow store several strings in single string.
Sqlite may be better if need to store large number of items in a file or in a memory table. But for 100 items probably will be slower, even with indexing.

XML - slower. It is better for trees than tables.


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)