Elisp: List vs Vector

By Xah Lee. Date: . Last updated: .

Differences Between List and Vector

Here's the differences between List and Vector:

In short, list can grow or shorten, but if you have a long list, say 1 thousand items, getting the value of 900th item is slow.

Vector has fixed length. Getting the value of any element is fast.

Elisp, Data Structure