help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Resource efficiency of vectors


From: Joost Diepenmaat
Subject: Re: Resource efficiency of vectors
Date: Mon, 15 Sep 2008 14:36:27 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

Nordlöw <per.nordlow@gmail.com> writes:

> Is it more resource efficient to use a vector instead of a list in
> emacs?

Depends on the resource, and on the algorithm. lists are linked lists,
vectors are memory blocks. That should give you some indication of when
to use which.

http://www.gnu.org/software/emacs/manual/html_node/elisp/Sequences-Arrays-Vectors.html#Sequences-Arrays-Vectors

-- 
Joost Diepenmaat | blog: http://joost.zeekat.nl/ | work: http://zeekat.nl/


reply via email to

[Prev in Thread] Current Thread [Next in Thread]