unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* fastest data structure for a hash-like lookup
@ 2003-06-04 19:10 Florian von Savigny
  2003-06-04 18:57 ` lawrence mitchell
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Florian von Savigny @ 2003-06-04 19:10 UTC (permalink / raw)


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1322 bytes --]




Hi folks,

I need a data structure that can be accessed via a key (the keys are
unique), which points to a value that is a list (in the general sense,
not in the elisp sense) of three elements. [In Perl, I would implement
this as a hash where the values are references to lists.]. It may also
be thought of as a structure with keys that point to "a set of three
values" each. The structure would be quite large and not be
manipulated by the elisp program, but merely serve as a lookup table.

I think I've read something that sounded like a vector would be the
right thing to use (is not changed, is fast), but I haven't found any
advice on that. Or is it an obarray? A property list? An alist? An
array? A combination of two? And how would that look like?

Sorry I wasn't able to find any useful documentation (the manual is as
terse as ever). Neither an archive nor an FAQ seems to be available
for this group, and though there is plenty of interesting elisp code
available, there seems to be no discussion of elisp programming but
here.

Thanks a lot in advance,



Florian v. Savigny

If you are going to reply in private, please be patient, as I only
check for mail something like once a week. - Si vous allez répondre
personellement, patientez s.v.p., car je ne lis les courriels
qu'environ une fois par semaine.

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

end of thread, other threads:[~2003-06-04 23:45 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-04 19:10 fastest data structure for a hash-like lookup Florian von Savigny
2003-06-04 18:57 ` lawrence mitchell
2003-06-04 19:05 ` Kevin Rodgers
2003-06-04 20:58 ` Stefan Monnier
2003-06-04 23:45   ` Florian von Savigny
2003-06-04 23:09     ` Stefan Monnier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).