Array of variable length strings
Currently only arrays of fixed-length strings are supported by JADE.
Array of variable length strings would be particularly useful when doing things like CSV imports, where each line is split into a string array for processing. With an array of fixed-length strings, the length of the strings need to be set high enough for any eventuality. We therefore have developers using arrays of maximum sized strings (length of 15999). This results in a huge waste of resources.
I realize that for performance reasons, in a lot of cases arrays of variable length strings are not appropriate, but there are times when they are appropriate and it would be nice to have the option.
I submitted this as an NFS in 2006 (#41070).
John Beaufoy 11/10/2017 3:26:16 PM
Had a similar problem - built a VariableStringArray class that utilises a JadeBytes structure with an array to record offsets for each index. If you track me down @ NWI I'd be happy to forward on the code. I should stress that this solution is less than ideal - effectively a hack - so having an inbuilt solution would be cleaner, more accessible and more performant.