unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Noam Postavsky <npostavs@users.sourceforge.net>
Cc: Andy Sonnenburg <andy22286@gmail.com>,
	Emacs developers <emacs-devel@gnu.org>
Subject: Re: Binary Search Tree and Treap Functions bst-assq and treap-put
Date: Sun, 22 Oct 2017 12:44:45 -0400	[thread overview]
Message-ID: <jwvo9ozjfwr.fsf-monnier+Inbox@gnu.org> (raw)
In-Reply-To: <CAM-tV--33NzkbvSYEOQ+ZAyEqUZsc7=7Cu+5fjeHLp_eSm7uxQ@mail.gmail.com> (Noam Postavsky's message of "Sun, 22 Oct 2017 12:35:30 -0400")

>> AFAIK it's O(1) currently (for byte-compiled code only, but performance
>> of non-byte-compiled code should be of no importance).
> There is one case where interpreted code performance matters: during boostrap.

Which doesn't affect users, so it's reasonably low on the priority list.
Also, I'm far from convinced that an O(log N) lookup of lexical
variables will help very much there (profiling would clearly be needed
to determine the main performance culprit, but I wouldn't be surprised
if it's completely elsewhere as in macro-expansion, for instance).

> I wonder if bootstrap-emacs could load these functions as a module to
> make bootstrapping with .el files go faster...

If we want to speed up bootstrapping, maybe we should aim to bootstrap
without interpreting Elisp code: keep a set of precompiled .elc files,
with which we build bootstrap-emacs.


        Stefan



  parent reply	other threads:[~2017-10-22 16:44 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-04  1:42 Binary Search Tree and Treap Functions bst-assq and treap-put Andy Sonnenburg
2016-12-04  4:33 ` Stefan Monnier
     [not found]   ` <CAHtDYY-xis2R4Nbvq_8Ht0nKsm6KjGqW=NSC7O3+5FvNF9w+Dg@mail.gmail.com>
     [not found]     ` <CAHtDYY9__BVOAs+vX=Tj8Bf31X6-Duv3f9MS8vcGwsnO2x74+w@mail.gmail.com>
2016-12-04 12:14       ` Andy Sonnenburg
2016-12-04 17:04         ` Stefan Monnier
2016-12-04 17:13           ` Andy Sonnenburg
2016-12-04 17:39             ` Andy Sonnenburg
2016-12-04 17:41             ` Eli Zaretskii
2016-12-12  6:15           ` John Wiegley
2016-12-12 12:56             ` Stefan Monnier
2016-12-12 16:46               ` John Wiegley
2016-12-12 16:58                 ` Stefan Monnier
2016-12-12 17:06                   ` John Wiegley
2016-12-12 17:29                     ` Stefan Monnier
2017-10-22 16:35   ` Noam Postavsky
2017-10-22 16:44     ` Andreas Schwab
2017-10-22 16:44     ` Stefan Monnier [this message]
2017-10-22 17:12       ` Noam Postavsky
2017-10-23  0:37         ` Stefan Monnier

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvo9ozjfwr.fsf-monnier+Inbox@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=andy22286@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=npostavs@users.sourceforge.net \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).