English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I am creating an XML file with 12 intervals of data each containing around 10 MB of information. I am timing the writing process and each interval takes longer than the previous one. The first one takes 4 seconds and the last one takes 79 seconds. Plotting each duration presents a pretty straight line. My guess is that XMLtextWriter seeks to end of file each time it adds a line thus the linear nature of the degradation. Any thoughts?

2007-03-27 05:18:08 · 1 answers · asked by bill z 1 in Computers & Internet Programming & Design

1 answers

I think you're right about the seek, maybe you could try creating 12 different files and then just splice them together at the end? This may get you around limitations of the object you're using.

Also, are you writing the file, closing it, and then re-opening it? If so, you should probably just write it all out at once, if possible in your scenario.

good luck!

2007-03-27 05:28:33 · answer #1 · answered by fixedinseattle 4 · 0 0

fedest.com, questions and answers