Re: Vector efficiency
- From: Patricia Shanahan <pats@xxxxxxx>
- Date: Tue, 29 Aug 2006 01:29:25 GMT
Christopher Smith wrote:
Is there a meaningful differnece in efficiency between using a vector
<Double> and using an array double[]?
The array is definitely more space-efficient, if you don't need the
Double objects for any other reason. It will also make more efficient
use of caches, especially for sequential scans. It may also be a bit
more time efficient, because of less indirection.
However, the real test is which works better in your program.
Patricia
.
- References:
- Vector efficiency
- From: Christopher Smith
- Vector efficiency
- Prev by Date: Vector efficiency
- Next by Date: Re: Vector efficiency
- Previous by thread: Vector efficiency
- Next by thread: Re: Vector efficiency
- Index(es):