Vector

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Vector

Mike Cowlishaw-2
Vectors are implemented as arrays 'under the covers' and also incur object
allocation and synchronization overheads.  It's unlikely that using Vector
rather than arrays directly would be faster.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Mike Cowlishaw, IBM Fellow, IBM UK Laboratories
mailto:[hidden email]   [http://www2.hursley.ibm.com]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe from this mailing list ( ibm-netrexx ), please send a note to
[hidden email]
with the following message in the body of the note
unsubscribe ibm-netrexx <e-mail address>

Reply | Threaded
Open this post in threaded view
|

Re: Vector

Andreas Zieritz-2
>Vectors are implemented as arrays 'under the covers' and also incur object
>allocation and synchronization overheads.  It's unlikely that using Vector
>rather than arrays directly would be faster.

One of the pro's of vectors is that their actual size doesn't have to be
known at initialization. Using arrays would sometimes either create a limit
or use too much space.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe from this mailing list ( ibm-netrexx ), please send a note to
[hidden email]
with the following message in the body of the note
unsubscribe ibm-netrexx <e-mail address>