summaryrefslogtreecommitdiff
path: root/test/lisp/emacs-lisp/cl-print-tests.el
diff options
context:
space:
mode:
authorGemini Lasswell <gazally@runbox.com>2019-08-03 12:33:20 -0700
committerGemini Lasswell <gazally@runbox.com>2019-09-13 13:43:07 -0700
commit6eaf39d21b70802e6bc607ee2fc2fff67b79231a (patch)
tree88d93b6bfffd2cf5a0d0f62c48ea8ed17d61a6fb /test/lisp/emacs-lisp/cl-print-tests.el
parent5c40c21a47062782bc983f41e8eeb97180dca693 (diff)
downloademacs-6eaf39d21b70802e6bc607ee2fc2fff67b79231a.tar.gz
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.
Diffstat (limited to 'test/lisp/emacs-lisp/cl-print-tests.el')
0 files changed, 0 insertions, 0 deletions