! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
parallel thumbnailing
Status:
RESOLVED: DUPLICATE
Severity:
enhancement
Product:
Tumbler
Component:
General

Comments

Description Yves-Alexis Perez editbugs 2011-04-11 14:44:38 CEST
Hey,

a Debian user requested a feature for tumbler: that it could use multiple CPU cores to do thumbnailing. That'd be nice since more and more multi-core CPU exist (even on smartphones :) and parallelizing thumbnail generation would help doing that faster.
Comment 1 Jannis Pohlmann editbugs 2011-04-11 14:52:31 CEST
This is already implemented but for some reason that I don't remember, the schedulers in tumblerd only use one thread at the moment (as can be seen here: http://git.xfce.org/xfce/tumbler/tree/tumblerd/tumbler-lifo-scheduler.c#n141). 

I'm not sure we want to increase this as it might as well be a good idea not to waste all CPUs on generating thumbnails. Other applications might benefit from the free CPU(s).
Comment 2 Yves-Alexis Perez editbugs 2011-04-11 15:22:23 CEST
It'd be a little more complicated but maybe check the current load and calcul the optimal number of threads according to the load and the number of cores? The faster it's done, the faster the cpu is available for doing something else (as long as the UI is still responsive, obviously :)
Comment 3 Lionel Le Folgoc 2012-12-13 18:12:36 CET

*** This bug has been marked as a duplicate of bug 3703 ***

Bug #7493

Reported by:
Yves-Alexis Perez
Reported on: 2011-04-11
Last modified on: 2012-12-13

People

Assignee:
Jannis Pohlmann
CC List:
1 user

Version

Version:
0.1.21

Attachments

Additional information