I'm really hoping they work in the "hint" solution I posted there... Because the simplest page on my dev server includes ~200 PHP files... 109 of which are just event listeners that ultimately never trigger anything. Compound that with the fact that things like every load_class_model event listener gets triggered every time ANY model is initiated... A normal page on my dev server ends up firing about 2,400 static event listeners to see if anything should be run... and in the end, only 2 or 3 actually do.I just thought it would be good to find out if this may be true. And if yes, to pick up his solution in a future XF version: Compile Each Event Listener Type Into Single PHP File
I'm really hoping they work in the "hint" solution I posted there...
I'm really hoping they work in the "hint" solution I posted there... Because the simplest page on my dev server includes ~200 PHP files... 109 of which are just event listeners that ultimately never trigger anything. Compound that with the fact that things like every load_class_model event listener gets triggered every time ANY model is initiated... A normal page on my dev server ends up firing about 2,400 static event listeners to see if anything should be run... and in the end, only 2 or 3 actually do.
It certainly doesn't make it slow enough that it's unusable, but I'd guess about 15% of the page rendering time involves firing off all these event listeners that really don't need to be.
You don't need 200 addons... As an example, I have ~50 addons, and XenForo_CodeEvent::fire() is called 2,808 times on my home page (of which it actually fires off something about 7 times... so it makes ~2,800 checks that ultimately do nothing).Would you be open to making some artifical way of replicating this? Mainly because I don't want to go down the route of installing 200 different addons
Was the only reason for mentioning Linode just to get some RAM quantities to do testing on? I was kind of confused about that part.
Also, will you give some more specs on the hardware like CPU model and RAM speed?
Slavik, how are you testing these? I've got a mild server in use, that's not the post potent, but you might want to add it to your list, or I can do the benchmarks if you like? In around February, I'll probably have a more powerful server, with 32GB RAM and an SSD to test things out on.
I just read your server specs. You should consider changing the HDD with a SSD in one of it.
SSD's are not realy available en-masse or affordable to many website owners as it currently stands. These tests are to provide a baseline set of results using "standard" hardware. Any upgrades to high performance hardware will obviously provide extra benefits.
In a serious server setup a SSD is a must. SSDs starts at $150 (you only need a small one in a server) which is not much more compared to the price of a 1 TB 7200 RPM HDD.
Are 15K SAS drives even worth the money these days?
It depends on what you are doing with them more than anything.Are 15K SAS drives even worth the money these days?
Well unless you are getting crazy traffic (like maybe 500 *new* [not returning] visitors per second), the hard drive isn't going to make a whole lot of difference. It's not like an image is downloaded from the server every time it's seen (unless the server is really poorly configured).interested to see performance-results when havong lots if images-files.....
Well unless you are getting crazy traffic (like maybe 500 *new* [not returning] visitors per second), the hard drive isn't going to make a whole lot of difference. It's not like an image is downloaded from the server every time it's seen (unless the server is really poorly configured).
We use essential cookies to make this site work, and optional cookies to enhance your experience.