* lisp/emacs-lisp/package.el: Some speed optimizations on menu refresh
(package-menu--print-info): Obsolete. (package-menu--print-info-simple): New function. (package-menu--refresh): Use it, simplify code, and improve performance. * lisp/emacs-lisp/tabulated-list.el (tabulated-list-print-entry): Tiny performance improvement.
This commit is contained in:
parent
5b6c58395d
commit
f4ad42936e
2 changed files with 39 additions and 31 deletions
|
@ -341,8 +341,10 @@ of column descriptors."
|
|||
(dotimes (n ncols)
|
||||
(setq x (tabulated-list-print-col n (aref cols n) x)))
|
||||
(insert ?\n)
|
||||
(put-text-property beg (point) 'tabulated-list-id id)
|
||||
(put-text-property beg (point) 'tabulated-list-entry cols)))
|
||||
;; Ever so slightly faster than calling `put-text-property' twice.
|
||||
(add-text-properties
|
||||
beg (point)
|
||||
`(tabulated-list-id ,id tabulated-list-entry ,cols))))
|
||||
|
||||
(defun tabulated-list-print-col (n col-desc x)
|
||||
"Insert a specified Tabulated List entry at point.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue