Re: Vector problem? - How can I make the faster?
- From: amorgan@xxxxxxxxxxxxxxxxxx (Alan Morgan)
- Date: Sat, 27 Oct 2007 07:52:33 -0700 (PDT)
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
.
- References:
- Vector problem? - How can I make the faster?
- From: Chun
- Vector problem? - How can I make the faster?
- Prev by Date: Re: NewsMaestro Usenet Supertool v. 4.0.4 for Windows/Linux/Unix
- Next by Date: Re: Vector problem? - How can I make the faster?
- Previous by thread: Re: Vector problem? - How can I make the faster?
- Next by thread: Re: Vector problem? - How can I make the faster?
- Index(es):