# To "Vector" or to "Array", that is the question

**URL:** <https://forum.kirupa.com/t/to-vector-or-to-array-that-is-the-question/303600>\
**Category:** Uncategorized\
**Created:** [January 22, 2010, 11:54pm UTC](https://forum.kirupa.com/t/to-vector-or-to-array-that-is-the-question/303600 "2010-01-22T23:54:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![IQAndreas](https://avatars.discourse-cdn.com/v4/letter/i/f08c70/32.png) [@IQAndreas](https://forum.kirupa.com/u/IQAndreas)\
**Post date:** [January 22, 2010, 11:54pm UTC](https://forum.kirupa.com/t/to-vector-or-to-array-that-is-the-question/303600/1 "2010-01-22T23:54:10Z")

</div>

I’m developing a small library and trying to outweigh the pros and cons of using Vector vs. Array.

So far, I can only think of a few things to think of:

**Vector only works for FP10, while Array works for both 9 and 10.**

**Vector is typed** (which is a wonderful, fabulous thing), but if I’m only using the Array as a private variable, so I have full control over what goes in and comes out of it, this factor may not play as great a part anymore, but definitely great protection.

I believe I heard somewhere that Vector is a lot faster than Array, yet in a quick inconclusive speed test I did a while back, it didn’t seem to make any real difference at all.

**Is Vector really faster than Array? If so, is it faster in all aspects, or only faster in certain situations** just as uint is only faster than Number when using byteshifting?
