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

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

Re: how to access a large datastructure efficiently?


From: Stefan Monnier
Subject: Re: how to access a large datastructure efficiently?
Date: Tue, 04 May 2010 15:41:31 -0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.92 (gnu/linux)

> I have a large list of items which I want to access.  The items are in 
> sequential order, but many are missing in between, like:

> (1 8 17 23 25 34 45 47 50)  [in reality, there is a value associated 
> with this, but I took it out for simplicity]

If those integer-valued keys are really positions in a buffer, then
a good solution might be to store this "list" as a text property.


        Stefan


reply via email to

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