Ok I tried to speed things up this afternoon and succeed
I think once you got the gallery running the way you want it to its good to review all the querys and see which once you really use and which not. For instance in my configuration I managed to remove a lot of extra querys for every cat, original theire are 7 for each cat but I only need 4, in case you got a few cats this can speed up the querys draticly.
In real situation, also by seeing that I was doing things double I managed to get the following results: (measured at real server)
old
Page generated in 1.932 seconds - 82 queries in 1.043 seconds - Album set :
Page generated in 1.638 seconds - 82 queries in 0.915 seconds - Album set :
Page generated in 2.423 seconds - 82 queries in 0.944 seconds - Album set :
Page generated in 1.675 seconds - 82 queries in 0.923 seconds - Album set :
Page generated in 1.71 seconds - 82 queries in 0.923 seconds - Album set :
Figures were getting even worse because I used a online user block (this was measured with 12 users online)
new
Page generated in 1.013 seconds - 46 queries in 0.391 seconds - Album set :
Page generated in 1.03 seconds - 46 queries in 0.407 seconds - Album set :
Page generated in 1.012 seconds - 46 queries in 0.412 seconds - Album set :
Page generated in 1.038 seconds - 46 queries in 0.411 seconds - Album set :
Page generated in 1.026 seconds - 46 queries in 0.403 seconds - Album set :
Also with 12 users online
I think my host will like this too
In general for speeding up I would suggest quote out the not used features once you got it running the way you want.
Cause high speed and lots of features are mostly two thing which are sort of opposite of each other this is to be a decission for each developer, so perhaps a high performance version will allways be something unique for everyone, and not a simple thing which ca be made to fit everybodys need (just my 2 cents)