GNU bug report logs -
#40704
28.0.50; Improve and speed up (Gnus) registry saving
Previous Next
Full log
View this message in rfc822 format
Michael Heerdegen <michael_heerdegen <at> web.de> writes:
> (3) I also decided to change `eieio-override-prin1' to print hash tables
> "by hand" from Lisp. The eieio-persistent requires to modify how
> elements in the hash tables are printed, and the current way of doing
> this (make a copy of the complete table, change the elements, prin1 and
> re-read the result) is not only hackish but also inefficient (it does
> this recursively for nested tables).
[...]
> + (princ "#s(hash-table size ")
> + (prin1 (hash-table-size thing))
> + (princ " test ")
> + (prin1 (hash-table-test thing))
> + (princ " weakness ")
> + (prin1 (hash-table-weakness thing))
> + (princ " rehash-size ")
> + (prin1 (hash-table-rehash-size thing))
> + (princ " rehash-threshold ")
> + (prin1 (hash-table-rehash-threshold thing))
> + (princ " data (")
I'm still not enthusiastic about duplicating the hash printing here.
Whenever print_vectorlike changes, this has to be changed, too.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
This bug report was last modified 3 years and 121 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.