Storing a single huge string in an array does not negatively influence processing efficiency of the whole array, i.e. the other elements — if that's what you're thinking of. This is because what you store in one element does not influence the size of the other elements or the way they would be accessed internally.
| [reply] |
That depends on what you are doing while processing the array. If what you are doing is slow for long strings, than yes, it will affect processing. If what you are doing is independent of the length of the string, then it won't be affected.
Internally, the strings themselves aren't stored in the arrays. Just pointers to structs that have pointers to structs that have a pointer to a character array (on the C level). | [reply] |