]> git.eshelyaron.com Git - emacs.git/commit
image-dired: Increase number of asynch thumbnail generation jobs
authorStefan Kangas <stefan@marxist.se>
Tue, 26 Oct 2021 23:32:58 +0000 (01:32 +0200)
committerStefan Kangas <stefan@marxist.se>
Tue, 26 Oct 2021 23:52:05 +0000 (01:52 +0200)
commit23d2e7d112dd1a06b4392185cb78a03a96baf34c
tree2930cb50ee55af61aa5496ba9c63786ce4614785
parentb3a5ad14c1f047786fb71ff6f181b529ffc6ed9e
image-dired: Increase number of asynch thumbnail generation jobs

* lisp/image-dired.el (image-dired-queue-active-limit): Increase the
number of asynchronous thumbnail generation jobs to a maximum of 4 or
processor count divided by 2.  This makes thumbnail generation around
30 % faster when benchmarking this on my machine (8 cores/4 jobs).

(image-dired-debug): New defvar.
(image-dired-debug-message): New defun.

(image-dired--generate-thumbs-start): New defvar.
(image-dired-create-thumb-1, image-dired-display-thumbs): Display time
spent on thumbnail generation if 'image-dired-debug' is non-nil.
lisp/image-dired.el