emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Binary Search Tree and Treap Functions bst-assq and treap-put


From: Noam Postavsky
Subject: Re: Binary Search Tree and Treap Functions bst-assq and treap-put
Date: Sun, 22 Oct 2017 12:35:30 -0400

On Sat, Dec 3, 2016 at 11:33 PM, Stefan Monnier
<address@hidden> wrote:
>> now.  I intend to use these functions to make lexically-scoped variable
>> lookup average case O(log(n)) instead of the current O(n).
>
> 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.

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]