]> git.eshelyaron.com Git - emacs.git/commit
Fix unnecessary hash table creation in cl-prin1 (bug#36566)
authorGemini Lasswell <gazally@runbox.com>
Sat, 3 Aug 2019 19:33:20 +0000 (12:33 -0700)
committerGemini Lasswell <gazally@runbox.com>
Fri, 13 Sep 2019 20:43:07 +0000 (13:43 -0700)
commit6eaf39d21b70802e6bc607ee2fc2fff67b79231a
tree88d93b6bfffd2cf5a0d0f62c48ea8ed17d61a6fb
parent5c40c21a47062782bc983f41e8eeb97180dca693
Fix unnecessary hash table creation in cl-prin1 (bug#36566)

cl-prin1 prints all its punctuation by passing strings to prin1.  When
print-circle was set, print_preprocess was creating a new hash table
for each string, causing excessive garbage collection when printing
large Lisp objects with cl-prin1.

* src/print.c (print_number_index): Fix typo in comment above.
(PRINT_CIRCLE_CANDIDATE_P): Don't create print_number_table
for top-level strings with no properties, except when
print_continuous_numbering is on.
src/print.c