Re: Vector efficiency
- From: Christopher Smith <csmith@xxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 29 Aug 2006 11:43:51 -0500
Eric Sosman <esosman@xxxxxxxxxxxxxxxxxxx> wrote in
news:cPmdne5stv1pBW7ZnZ2dnUVZ_rmdnZ2d@xxxxxxxxxxx:
Christopher Smith wrote:
Vector and array are different things, capable of different
operations. You'll have to specify the operations you have in
mind, and what measures of "efficiency" (memory, time, ...?) are
important.
Hi Eric and Patricia --
So I did run a test between the vector approach, where I used the vector
<float>.get(i) to retrieve each record versus aligning the data into an
array declared as float[], and noticed about 2x computational speed
improvement. I guess there are a number of step performing a look up with
vector has to do as opposed to simple addressing through an array.
Chris
.
- Follow-Ups:
- Re: Vector efficiency
- From: Eric Sosman
- Re: Vector efficiency
- From: Tux2
- Re: Vector efficiency
- References:
- Vector efficiency
- From: Christopher Smith
- Re: Vector efficiency
- From: Eric Sosman
- Vector efficiency
- Prev by Date: Re: Application base URL
- Next by Date: Re: java.lang.NoClassDefFoundError
- Previous by thread: Re: Vector efficiency
- Next by thread: Re: Vector efficiency
- Index(es):
Relevant Pages
|
|