From: Michael Heerdegen <michael_heerdegen@web.de>
To: Christian Wittern <cwittern@gmail.com>
Cc: 26824@debbugs.gnu.org
Subject: bug#26824: 24.5; Bytecode overflow error when byte compiling large .el file
Date: Tue, 16 May 2017 02:24:07 +0200 [thread overview]
Message-ID: <8760h1wswo.fsf@drachen> (raw)
In-Reply-To: <ba0581d3-fdb3-0116-4aa4-2c60115f5aae@gmail.com> (Christian Wittern's message of "Tue, 9 May 2017 07:46:57 +0900")
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.
next prev parent reply other threads:[~2017-05-16 0:24 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-08 7:03 bug#26824: 24.5; Bytecode overflow error when byte compiling large .el file Christian Wittern
2017-05-08 16:40 ` Glenn Morris
2017-05-08 22:46 ` Christian Wittern
2017-05-15 0:49 ` Glenn Morris
2017-05-16 0:24 ` Michael Heerdegen [this message]
2017-05-16 2:08 ` Christian Wittern
2017-05-16 3:16 ` npostavs
2017-05-16 3:21 ` npostavs
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=8760h1wswo.fsf@drachen \
--to=michael_heerdegen@web.de \
--cc=26824@debbugs.gnu.org \
--cc=cwittern@gmail.com \
/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.