Re: Vector problem? - How can I make the faster?
- From: CBFalconer <cbfalconer@xxxxxxxxx>
- Date: Sat, 27 Oct 2007 05:01:37 -0400
Chun wrote:
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.
I've attached my code. Could someone comment on it and where it could
be improved? I'm particular interested in performance "tricks".
This doesn't belong in comp.programming, which basically discusses
algorithms. If your code is standard, try comp.lang.c++. If it is
using non-standard trickery, find a newsgroup that deals with your
system. I know little about C++, so I will not try to resolve that
question.
--
Chuck F (cbfalconer at maineline dot net)
Available for consulting/temporary embedded and systems.
<http://cbfalconer.home.att.net>
--
Posted via a free Usenet account from http://www.teranews.com
.
- References:
- Vector problem? - How can I make the faster?
- From: Chun
- Vector problem? - How can I make the faster?
- Prev by Date: Re: Please help!
- Next by Date: Re: Please help!
- Previous by thread: Vector problem? - How can I make the faster?
- Next by thread: Re: Vector problem? - How can I make the faster?
- Index(es):