[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#26824: 24.5; Bytecode overflow error when byte compiling large .el f
From: |
Michael Heerdegen |
Subject: |
bug#26824: 24.5; Bytecode overflow error when byte compiling large .el file |
Date: |
Tue, 16 May 2017 02:24:07 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) |
Christian Wittern <cwittern@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.
Michael.