GNU bug report logs - #52753
29.0.50; Printing long list-like structures fails

Previous Next

Package: emacs;

Reported by: Ihor Radchenko <yantar92 <at> gmail.com>

Date: Thu, 23 Dec 2021 11:06:01 UTC

Severity: normal

Found in version 29.0.50

Done: Mattias Engdegård <mattiase <at> acm.org>

Bug is archived. No further changes may be made.

Full log


Message #35 received at 52753 <at> debbugs.gnu.org (full text, mbox):

From: Ihor Radchenko <yantar92 <at> gmail.com>
To: Mattias Engdegård <mattiase <at> acm.org>
Cc: 52753 <at> debbugs.gnu.org
Subject: Re: bug#52753: 29.0.50; Printing long list-like structures fails
Date: Thu, 02 Jun 2022 21:12:56 +0800
Mattias Engdegård <mattiase <at> acm.org> writes:

> This should work in Emacs 29 (master) now; the reader, printer and
> garbage collector now cope better with deep structures.

Thanks! I re-tested my reproducer with the latest Emacs and the error is
gone. I was not able to trigger crashes either.
Feel free to close this bug.

> On the other hand you may want something that works on older Emacs versions.

I am currently playing with an alternative approach.
Simply caching recent avl-tree queries into a short vector can improve
the search time nearly 2x (according to real-usage statistics).

The idea is described in

Pugh [Information Processing Letters] (1990) Slow optimally balanced
search strategies vs. cached fast uniformly balanced search strategies.
http://dx.doi.org/10.1016/0020-0190(90)90130-P

Best,
Ihor




This bug report was last modified 2 years and 349 days ago.

Previous Next


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