Re: Vector problem? - How can I make the faster?



In article <1193464140.237006.168430@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
Chun <chun.tse@xxxxxxxxx> wrote:
Hello,

I've written some code in C++ to decode a binary file. First I read
the contents of the file and then create an index to each record and
field in the file. Then I have method to dump to stdio or I used
populate TCL structures for use in tcl scripts.

When I run on windows then it decodes a large file faily quickly.
However, when I run on Sun solaris then it "stalls" every now before
finally completing. Someone said that this is to do with me using
vectors and the "stall" was the vector algorithm finding more memory
to increase it's size.

Instead of guessing, why not profile your code and see where all the
time is being spent?

Alan
--
Defendit numerus
.