emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Lisp watchpoints


From: Stefan Monnier
Subject: Re: Lisp watchpoints
Date: Sun, 22 Nov 2015 16:25:40 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

> Another comment is: do we care about scalability of property lists for
> storing watchers?

As long as we only look up the property list for those few symbols that
have the "hooked" bit set, I think the slow down shouldn't be worrisome.
Also property lists are usually reasonably short (not much than 10
elements on those lists), so looking them up should be reasonably quick.

[ Reminds me: did I understand correctly that you found gethash to be
  faster than Fmemq on redisplay--variables?  For such a small number
  of elements, I find it really surprising, since I thought the
  generally expected "threshold" where gethash is faster than assq was
  somewhere in the order of a hundred elements.  ]


        Stefan



reply via email to

[Prev in Thread] Current Thread [Next in Thread]