Re: Performance of string deserialisation

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance




I can see in other threads on other groups that you are concerned about the performance of the read byte[]'s.


Please try the solution first, and verify -- using a profiler -- that your performance-problem is actually where you think it is.

If you need still more performance, you can checkout a data-structure called a "prefix-tree" which should give you some ideas to allow you to only store every read byte-sequence once, reading bytes one at a time.

However it is not certain that prefix-trees will benefit your performance, it all depends on the GC efficiency vs. your implementation of the data-structure you arrive at.

--
Helge Jensen
  mailto:helge.jensen@xxxxxxx
  sip:helge.jensen@xxxxxxx
               -=> Sebastian cover-music: http://ungdomshus.nu <=-
.