I'm trying to use a hash table for storing parsed CSS values. I'm seeing a degradation in performance (memory and CPU) over a period of time. Trying to investigate how to fix the same. Below is a minimal example:
(dotimes (i 10000)
(let* ((a (make-hash-table :test 'equal :weakness 'key-or-value))
(j 0))
(dolist (prop '(padding margin margin-top border
color background background-color display
width height clear
font font-size font-style font-weight))
(puthash j (list prop (setq j (1+ j))) a))
(pp a)
))
(Emacs 28.2 on Debian)