GNU bug report logs - #26824
24.5; Bytecode overflow error when byte compiling large .el file

Previous Next

Package: emacs;

Reported by: Christian Wittern <cwittern <at> gmail.com>

Date: Mon, 8 May 2017 07:04:01 UTC

Severity: minor

Merged with 49718

Found in versions 24.5, 28.0.50

Full log


View this message in rfc822 format

From: Christian Wittern <cwittern <at> gmail.com>
To: Michael Heerdegen <michael_heerdegen <at> web.de>
Cc: Glenn Morris <rgm <at> gnu.org>, 26824 <at> debbugs.gnu.org
Subject: bug#26824: 24.5; Bytecode overflow error when byte compiling large .el file
Date: Tue, 16 May 2017 11:08:24 +0900

On 05/16/2017 09:24 AM, Michael Heerdegen wrote:
> Christian Wittern <cwittern <at> gmail.com> writes:
>
>> Yes, that is right.  This file is a bit of a crazy thing, if there is
>> a better way to achieve this, I would be glad to know.
> Use a data structure.
>
> In the simplest case (when lookup time is not critical), just use a
> linear structure, an alist: For each VOL, define an alist with elements
> (pagelimit . filename) with `defconst'.  To implement
> `mandoku-cbeta-vol-page-to-file', find the first entry whose car is not
> smaller than the given page in a loop.  Return the cdr of the found
> cons.
Well, yes.  But I expect the timing then to be slower (although I did 
not really test this), because I would have to go sequentially through 
the alist, so I went with this inelegant method, which at least 
responses fast, even without bytecompiling.

Christian




This bug report was last modified 3 years and 193 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.