all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: how to build emacs without documentation?
Date: Wed, 14 Aug 2013 20:56:57 +0300	[thread overview]
Message-ID: <83a9kkp34m.fsf@gnu.org> (raw)
In-Reply-To: <jwv1u5wb4qe.fsf-monnier+gnu.emacs.help@gnu.org>

> From: Stefan Monnier <monnier@iro.umontreal.ca>
> Date: Wed, 14 Aug 2013 12:49:09 -0400
> 
> > Because they implemented makeinfo in Perl, and made it a real
> > translator, that builds an intermediate parse tree representation, and
> > then invokes an appropriate back-end to produce output.  By contrast,
> > the original makeinfo was a one-pass converter which left most of the
> > text intact and just acted on the few directives, expanding them
> > in-line.
> 
> Still: parsing should be fairly trivial, and rendering to Info (almost
> plain text) shouldn't be all that hard either.

You'd have to ask the author to have definitive response, but my guess
is that it is not trivial at all to parse Texinfo.  The language was
never meant to be parsed, it basically is just a bunch of TeX macros,
i.e. it was meant to be macro-expanded, not parsed.  And the old
makeinfo did exactly that: it _emulated_ macro expansion, it didn't
parse anything.  And it did that inline, i.e. as it was scanning the
source.

> In comparison, "rm info/elisp.info; time make info" says that it needed
> 57s to make up the elisp.info file.  More than 10 times slower to do
> a simpler job.
> 
> There must be either something I'm missing, or some serious performance
> bug somewhere.

Look at the parser code, and I'm sure you will see it.



  reply	other threads:[~2013-08-14 17:56 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.3001.1376231269.12400.help-gnu-emacs@gnu.org>
2013-08-13 14:51 ` how to build emacs without documentation? Stefan Monnier
2013-08-13 15:26   ` Rustom Mody
2013-08-13 16:32   ` Eli Zaretskii
     [not found]   ` <mailman.3136.1376411515.12400.help-gnu-emacs@gnu.org>
2013-08-14 16:49     ` Stefan Monnier
2013-08-14 17:56       ` Eli Zaretskii [this message]
2013-08-11 14:27 Gregor Zattler
2013-08-13 15:52 ` Glenn Morris

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=83a9kkp34m.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=help-gnu-emacs@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.