Skip to content

wallpapers: use all available CPU cores to generate wallpapers

Fushan Wen requested to merge work/fuf/multiprocess into master

After dark variant is added, the script needs to generate more wallpapers. This uses all the available CPU cores to generate wallpapers, which should shorten the generating time on modern computers.

Before:

> time python3.10 ./generate_wallpaper_sizes.py

real    2m26.763s
user    2m26.208s
sys     0m0.353s

After:

> time python3.10 ./generate_wallpaper_sizes.py

real    0m38.969s
user    2m53.784s
sys     0m2.547s

Merge request reports

Loading