all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: "Etienne Prud’homme" <e.e.f.prudhomme@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: Easy traversal of customize groups
Date: Fri, 23 Jun 2017 20:06:34 -0400	[thread overview]
Message-ID: <jwv8tkixnbs.fsf-monnier+Inbox@gnu.org> (raw)
In-Reply-To: <878tkiia92.fsf@x230.lts> ("Etienne Prud’homme"'s message of "Fri, 23 Jun 2017 18:56:25 -0400")

>> Another option is to perform one mapatoms traversal which builds a cache
>> of the "reverse links" and then use that.
> That’s also a solution.  Were you talking about a tree structure?

I was thinking of keeping the "tree" in a hash-table.

> It think it might over complicate the current implementation since we
> would have to remove an entry from the cache when it is unloaded and we
> would have to update each possible paths when a new group is loaded.

I was thinking of throwing the hash-table as soon as you're done with it.
It's pretty cheap to build.  You only need it to avoid O(N) calls to mapatoms.


        Stefan



      reply	other threads:[~2017-06-24  0:06 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-23 17:31 Easy traversal of customize groups Etienne Prud’homme
2017-06-23 20:34 ` Stefan Monnier
2017-06-23 22:56   ` Etienne Prud’homme
2017-06-24  0:06     ` Stefan Monnier [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwv8tkixnbs.fsf-monnier+Inbox@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=e.e.f.prudhomme@gmail.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.