This is what i've got from the control panel:
Processor Name Intel(R) Xeon(R) CPU X5650 @ 2.67GHz
Vendor ID GenuineIntel
Processor Speed (MHz) 2666.761
Processor Name Intel(R) Xeon(R) CPU X5650 @ 2.67GHz
Vendor ID GenuineIntel
Processor Speed (MHz) 2666.761
Total Memory 4147992 kB
Free Memory 222756 kB
Total Swap Memory 8388600 kB
Free Swap Memory 6715324 kB
System Uptime 119 Days, 21 Hours and 28 Minutes
Apache 2.2.19 Running
DirectAdmin 1.38.4 Running
Exim 4.76 Running
MySQL 5.1.57 Running
Named 9.3.6 Running
sshd Running
dovecot 2.0.13 Running
pure-ftpd 1.0.32 Running
Php 5.2.17 Installed
The server is located in the Netherlands, just like me. The only thing I know that might be an issue is the absence of Imagemagick. GD is installed, but the server admin doesn't want Imagemagick on his server. Could this be causing the speed issue? It's shared hosting on a rather big account. Performance outside of ModX is fine.
Pages that don't contain any images processed trough Gallery or PHPthumbof are normal speed. I've really tried everything, but I can't seem to figure out the poor performance I'm getting. I've looked in the error log, and it doesn't show anything strange. CSS and JS are compressed. Really the only quirk I have is with images trough Gallery, but somehow I highly doubt that it has anything to do with the Gallery addon itself...