On 2007 February 24 06:08, Bert Freudenberg wrote:
I was suggesting using #storeString on the Form, not the ByteArray. This is more efficient because it uses words instead of bytes, and it uses only one literal.
I misunderstood ... by Form, do you mean the project contents read from file, I am not clear on that.
This way, the parsing work is done only once when compiling. Reading decimal from a String at runtime is particularly inefficient. Don't do that ;)
I live to learn :) - and thanks for help.
Trying to be quick I misrepresented my wording about Decimals, the deserialization does:
serializedByteArrayContentsAsString do: [ :b | (b = Character space) ifTrue: [coll addLast: token asInteger. token := ''.] ifFalse: [token := token,b asString.].]. "process last snipped" coll asByteArray. It is a hack and not very fast, but seems ok in the context of this being done once for all tests. Would this be considered slow, I am not sure what to compare it to. Maybe it is even slower than reading decimal from a String. I should really replace it.
Milan
- Bert -