• Please take a moment to look over the Suggestions & Feedback rules before making a post: READ RULES HERE

Why this forum super fast !

mainceaft

Senior Member
Joined
Apr 10, 2013
Messages
884
Reaction score
185
I have this question on my mind about many popular site "not FB of course " loads very fast . even I'm PHP programmer and WP themes designer but my best were ~200ms TTFB for very simple lightweight WP theme of mine , but this forum and other sites "e.g RT" load on blink of eye .
BTW I didn't extreme on my tests and load my site from RAM cache(varnish) yet , but I don't think these
interactive site using cache all the time ,
So what you think .
 
I have this question on my mind about many popular site "not FB of course " loads very fast . even I'm PHP programmer and WP themes designer but my best were ~200ms TTFB for very simple lightweight WP theme of mine , but this forum and other sites "e.g RT" load on blink of eye .
BTW I didn't extreme on my tests and load my site from RAM cache(varnish) yet , but I don't think these
interactive site using cache all the time ,
So what you think .

For Wordpress you can just cache the crap out of it. Its not like the content will change ever 30 minutes :) For other apps it gets more complicated. Especially where there is a lot of XHR backend calls happening.

Offload-ssl.png
 
It's because Wordpress is a slow bloated badly coded pile of shite.


.
 
For other apps it gets more complicated. Especially where there is a lot of XHR backend calls happening.
I know about Varnish I didn't use it because of SSL even their already solution for it but I prefer Nginx native cache using tmpfs .
My question is about interactive site s What's in my mind is something I think few people use it "php Swoole" it bit complicted framework but what I read this will jump PHP performance close to C/C++ native code
 
My question is about interactive site s What's in my mind is something I think few people use it "php Swoole" it bit complicted framework but what I read this will jump PHP performance close to C/C++ native code

That highly depends on your code. You could also just use https://hhvm.com/ . The main issue is with PHP... I doubt bytecode will change a lot about Queries and I/O operations. Maybe run some debug frameworks to see where your bottleneck is.
 
This forum is so fast because...

It runs on Litespeed server
Cached by CloudFlare
Probably uses https://xenforo.com/community/resources/litespeed-cache-for-xf2-community.6248/. @Diamond Damien could confirm that.

Comparing a well-optimised forum with a Vanilla Wordpress that runs on vanilla PHP without any caching/tuning is like comparing an Apple with an Orange. Jocelyn Wildenstein and Mia Khalifa has the same number of bones in their skeleton which are made up of same calcium(replace it with PHP) but they look and feel different outside.
 
That highly depends on your code. You could also just use https://hhvm.com/ . The main issue is with PHP... I doubt bytecode will change a lot about Queries and I/O operations. Maybe run some debug frameworks to see where your bottleneck is.

This forum is so fast because...

It runs on Litespeed server
Cached by CloudFlare
Probably uses https://xenforo.com/community/resources/litespeed-cache-for-xf2-community.6248/. @Diamond Damien could confirm that.

Comparing a well-optimised forum with a Vanilla Wordpress that runs on vanilla PHP without any caching/tuning is like comparing an Apple with an Orange. Jocelyn Wildenstein and Mia Khalifa has the same number of bones in their skeleton which are made up of same calcium(replace it with PHP) but they look and feel different outside.


Here's me thinking you 2 were just pretty faces too :D
 
You can implement several tweaks to improve but the main reason is because they use a CDN
 
So far i guess by using cloudflare as mentioned by @SpoonFeeder above?
Cloudflare is just the company, CDN is the technique. There are several companies that offer a CDN so up to you which one you want to go with. But keep in mind, if you don't have a lot of traffic this is really not that badly needed and you can make your WP a lot faster with different tweaks but if you have a lot of traffic worldwide you will definitely could use a CDN.
 
As @SpoonFeeder mentions above it's cloudflare. Per @Billy Batts it's the technique that's important - not so much the company, although you want one that will be here tomorrow. They also need strong uptimes and nodes located near your traffic. IE little point in having all your traffic coming from India and all CDN network in the US. It's a process requiring constant tweaking but the base CDN concept is simple.
 
Back
Top