all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Resource efficiency of vectors
@ 2008-09-15 12:23 Nordlöw
  2008-09-15 12:36 ` Joost Diepenmaat
  0 siblings, 1 reply; 2+ messages in thread
From: Nordlöw @ 2008-09-15 12:23 UTC (permalink / raw)
  To: help-gnu-emacs

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

/Nordlöw


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Resource efficiency of vectors
  2008-09-15 12:23 Resource efficiency of vectors Nordlöw
@ 2008-09-15 12:36 ` Joost Diepenmaat
  0 siblings, 0 replies; 2+ messages in thread
From: Joost Diepenmaat @ 2008-09-15 12:36 UTC (permalink / raw)
  To: help-gnu-emacs

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/


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-09-15 12:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-15 12:23 Resource efficiency of vectors Nordlöw
2008-09-15 12:36 ` Joost Diepenmaat

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.