[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#55481: mostly nonrecursive printing [PATCH]
From: |
Eli Zaretskii |
Subject: |
bug#55481: mostly nonrecursive printing [PATCH] |
Date: |
Tue, 17 May 2022 18:48:09 +0300 |
> From: Mattias Engdegård <mattiase@acm.org>
> Date: Tue, 17 May 2022 15:59:16 +0200
>
> Printing deeply nested values typically crashes Emacs by running out of C
> stack since the printer uses C recursion to traverse nested data structures.
> This is a long-standing problem that keeps turning up; see bug#52753 for one
> example.
>
> The attached patch eliminates most of the recursion: conses, vectors,
> records, hash tables and char tables are now traversed without consuming C
> stack. This should cover the vast majority of objects that form deep
> structures.
Thanks, this is an important improvement, IMO.