Vectors vs XML
In the past we had phones with very limited memory so I have been using
Vectors to save values and then when I am ready to send the data, formatting
it into a psuedo XML stream, and sending to the server. This approach has
worked well with the limited memory we had in the old phones with MIDP 1.0,
I sometimes had as many as 600 scanned items to transmit and sent it in
chunks to the server.
As we have faster processors and more memory I find that I need more complex
data structures, Vectors inside Vectors and I am starting to think it may be
better to use a parser like KXML to create and maintain an XML document in
memory. This would allow for children within children and I could still read
through the document and send chunks to the server. It also make persisting
the data easy to the File system if there is no network. Has anyone else
started using parsers like KXML in memory and what has been your experience?
Do you think there is enough resources to keep this running and is it
essentially the same as having many Vectors in memory?
To unsubscribe, send email to firstname.lastname@example.org and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
email@example.com and include in the body of the message "help".