all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "'Juri Linkov'" <juri@jurta.org>
Cc: emacs-devel@gnu.org
Subject: RE: breadcrumbs for Info . . . . . .
Date: Tue, 10 Jun 2008 20:18:02 -0700	[thread overview]
Message-ID: <00ae01c8cb71$c26aeef0$0200a8c0@us.oracle.com> (raw)
In-Reply-To: <87fxrkltma.fsf@jurta.org>

> This is a nice feature, but I think its implementation is too heavy:
> to display just one node it has to visit several other nodes. 
> It would be more optimal to build a tree of all Info nodes after
> visiting the first node and to use this cached structure during
> displaying an Info node.

Now you know why I sent the mail about `T' and TOC. ;-) That was the first
approach I thought of: use something similar to the node tree built for `T'.

However, I don't think that the current breadcrumbs approach is a problem or
that the other (TOC) approach would be better. Why? Because most manuals are not
deep. I picked the deepest node I found in the Emacs manual (by looking at the
TOC) as the example I sent. And I see no performance problem with that depth.

We have only a certain number of possible heading levels, and it works fine for
those, AFAICT. Remember, breadcrumbs reflect document structure, not
chronological visits (as they always should). They are not meant to duplicate
the Back button (`l').

Do you actually see a performance problem (recipe)?

On the other hand, the implementation naively visits each ancestor node, using
`Info-goto-node'. Very naive. There is no need to do everything that
`Info-goto-node' does, just to pick up the Up node names! That could be
optimized. I don't feel like working on that, myself, but if someone wants to,
go for it.

The current approach is very simple - and AFAICT it is fast enough. If you find
that it is not, there should be plenty of room for optimization in the current
approach.

If that would still not be fast enough, then we could look at using a node tree
approach. However, should we then automatically precompute the node tree for the
whole manual (or perhaps whole subfile), or just build pieces of it as needed
(e.g. via breadcrumbs for visited subfiles)?

Wrt the other thread (`T' and TOC), unless there is some other reason (e.g.
breadcrumbs, other things...), there is no need to prebuild the TOC. Better to
wait until the user hits `T'. Of course, once it's built, it could be used for
other things.






  reply	other threads:[~2008-06-11  3:18 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-10 23:52 breadcrumbs for Info . . . . . Drew Adams
2008-06-11  0:04 ` Juri Linkov
2008-06-11  3:18   ` Drew Adams [this message]
2008-06-11  9:34     ` Juri Linkov
2008-06-11 13:46       ` Drew Adams
2008-06-11 18:59         ` Eli Zaretskii
2008-06-11 22:40         ` Juri Linkov
2008-06-12  2:01           ` Miles Bader
2008-06-12 22:42           ` Drew Adams
2008-06-13  3:27             ` Stefan Monnier
2008-06-13  6:34               ` Drew Adams
2008-06-13  8:43                 ` Thien-Thi Nguyen
2008-06-13 13:55                   ` Drew Adams
2008-06-13 17:17                     ` Thien-Thi Nguyen
2008-06-13 17:52                       ` Drew Adams
2008-06-13 19:55                         ` Thien-Thi Nguyen
2008-06-13 20:10                           ` Drew Adams
2008-06-15 18:19                           ` Juri Linkov
2008-06-13 14:05                   ` Stefan Monnier
2008-06-13 15:12                     ` Drew Adams
2008-06-13 17:16                       ` Stefan Monnier
2008-06-13 18:32                     ` Thien-Thi Nguyen
2008-06-14  9:47                       ` Eli Zaretskii
2008-06-14 10:01                         ` Thien-Thi Nguyen
2008-06-13 13:58                 ` Stefan Monnier
2008-06-13 15:11                   ` Drew Adams
2008-06-13 20:34                     ` Stefan Monnier
2008-06-13 22:11                       ` Drew Adams
2008-06-13 22:44                         ` Stefan Monnier
2008-06-14  9:45                           ` Drew Adams
2008-06-14 16:16                             ` Stefan Monnier
2008-06-14 17:24                               ` Drew Adams
2008-06-14 18:04                                 ` Stefan Monnier
2008-06-15  0:27                                 ` Juri Linkov
2008-06-15  7:33                                   ` Drew Adams
2008-06-15 18:23                                     ` Juri Linkov
2008-06-15 19:46                                       ` Drew Adams
2008-06-15  0:28                       ` Juri Linkov
2008-06-15  2:04                         ` Stefan Monnier
2008-06-15 18:18                           ` Juri Linkov
2008-06-15  7:55                         ` Drew Adams

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='00ae01c8cb71$c26aeef0$0200a8c0@us.oracle.com' \
    --to=drew.adams@oracle.com \
    --cc=emacs-devel@gnu.org \
    --cc=juri@jurta.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.