Speed advice — anything goes

(Dmitry Krasnoperov) #1

I would like to find way yo optimize my Discourse install.
I have DO hosting with 2GB. It is hosted in German, but main audience is located in Russia and East Europe.

The typical Navigation Timing API values looks like that:

Where is room for improvement? It looks like I don’t need moar RAM.

(Dmitry Krasnoperov) #2

Are there features that affect perfomance most?

(Dmitry Krasnoperov) #3

Our local Board3 Portal powered forum works like this

(Kane York) #4

You can use MiniProfiler to see where Discourse is spending its time. I don’t remember what the sequence to turn it on is… @sam ?

(Jeff Atwood) #5

Discourse does not work like a traditional website where each click reloads a webpage. First click times are not representative of general performance.

On first click the JavaScript Discourse app is sent to the browser, sort of like installing an app on your smartphone. This would be like measuring app response time by including the time it takes to download and install the app on your smartphone.

Try measuring subsequent clicks and comparing timing, e.g. first click to load the JS app in the browser

Subsequent clicks to show a topic

That “755.json” in the above request is the topic data, that is all that is pulled, the JavaScript renders the rest from that data (and you can see some avatars there as well and other images specific to the topic…)