From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: how to build emacs without documentation? Date: Wed, 14 Aug 2013 20:56:57 +0300 Message-ID: <83a9kkp34m.fsf@gnu.org> References: NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1376503035 16119 80.91.229.3 (14 Aug 2013 17:57:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 14 Aug 2013 17:57:15 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Aug 14 19:57:17 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1V9fJr-0006Rj-Tb for geh-help-gnu-emacs@m.gmane.org; Wed, 14 Aug 2013 19:57:16 +0200 Original-Received: from localhost ([::1]:45826 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V9fJr-00010O-Jm for geh-help-gnu-emacs@m.gmane.org; Wed, 14 Aug 2013 13:57:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57762) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V9fJF-0000NY-TZ for help-gnu-emacs@gnu.org; Wed, 14 Aug 2013 13:56:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V9fJA-0006Ll-3K for help-gnu-emacs@gnu.org; Wed, 14 Aug 2013 13:56:37 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:56551) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V9fJ9-0006LR-S5 for help-gnu-emacs@gnu.org; Wed, 14 Aug 2013 13:56:32 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0MRJ00F008E6UV00@a-mtaout20.012.net.il> for help-gnu-emacs@gnu.org; Wed, 14 Aug 2013 20:56:30 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MRJ00FED8I5RG30@a-mtaout20.012.net.il> for help-gnu-emacs@gnu.org; Wed, 14 Aug 2013 20:56:30 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.166 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:92893 Archived-At: > From: Stefan Monnier > 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.