Frank
I don't think it's necessarily an album bug. I've got a decent size album:
$ ls | wc -l
7155
after I rm tn/*.html, a complete album run takes ~4 minutes. I got that
down to ~30s (with a several-year-old 1.6GHz Celeron) with some
modifications. For me, the slow speed was a combination of fork/exec
time and the sheer overhead of invoking 'identify' over and over. I
implemented an album plugin that uses native perl calls to replace
calling 'identify' and caches the results in an extended attribute. The
album plugin is quite simple, but the fetch_exif() is the real magic and
it's not really in sharable shape:
http://sr71.net/~dave/projects/album/native_perl_exif.alp.txt
You might also have some issues with your filesystem.
Multi-thousand-file directories can get a bit slow in some cases.
What is your user/system CPU split? Are you CPU or I/O bound?
I can confirm that it is in fact the usage of a theme (like Black3,
Blue, Column, Stars) that causes this tremendous slow down.
Without a theme or the PopUp theme which doesn't generate the html files
album runs quite fast.
Moreover does the slow down increase not simply linearly with the number
of images but stronger (maybe exponentially). While 250 images took 45
seconds, 500 took 150 seconds. In the case of 40000 images one tn/*.html
file takes about 10 seconds.
I didn't notice any significant improvement by using the xy_cache
pluging but I didn't study this in detail.
Dave H.,
Your plugin sounds very interesting, but unfortunately I wasn't able to
run it.
My user/system for regenerating the tn/*.html files of 250 images was as
follows:
test$ time album -theme Black3
Read conf: ~/.album.conf
This is album v4.06 on linux
Read conf: test/album.conf
Images: test
[XXXXXXXXXXXXXXXXXXXXXXXXX]
Indexes: test
[XXXXXXXXXXXXXXXXXXXXXXXXX]
real 0m45.556s
user 0m43.910s
sys 0m3.130s
Without a theme it is
test$ time album
Read conf: ~/.album.conf
This is album v4.06 on linux
Images: test
[XXXXXXXXXXXXXXXXXXXXXXXXX]
Indexes: test
[XXXXXXXXXXXXXXXXXXXXXXXXX]
real 0m5.813s
user 0m0.490s
sys 0m0.530s
So in conclusion I believe this is a general problem of album using
themes, which should be reproducible on any system.
Please let me know if you need further details to trace it down and
please keep me posted if you find any solutions for this problem.
Frank