Re: Displaying a large amount of data quickly (VB6)

Tech-Archive recommends: Fix windows errors by optimizing your registry



>It is my understanding that Join, Replace and Split can all become slow
>when facing a huge amount of data. Since you have a huge existing array
>of data to work with, I would be interested in the time required to load
>the RichTextBox using the SelText solution I posted earlier (repeated
>below so you can just copy/paste it). Could you run that test for us and
>report your findings back here? Thanks in advance.

Rick,

Thanks for making that easy for me. :-)

I did a control-break after 3 minutes, and the loop index was only up
to around 40,000, so it was only about only about 16% done. But if, as
we suspect, it takes longer as more text is added, then it was nowhere
near that far along. Also, memory usage was probably comparable - Task
Manager showed VB6.exe up to about 132MB of memory usage (this is a
Win2k Pro system).

It kinda looks like my suspicion might be correct - that anything
involving a loop of VB code would be too slow.

Thanks for the suggestion though. I really appreciate all the help I
get here.

Tom
.


Quantcast