I mentioned last week that I made a few changes to improve performance across the site. I continued with some additional changes the past few days, this time focused on comments. The most noteworthy changes are...

  1. I improved the code for fetching threaded comments. This will reduce the load time for any page with comments (giveaways, discussions, tickets), but you'll see the largest impact on discussions with a high number of comments.
  2. The pagination system for comments has been revised, which also helps with load times. The "Last" page button will now link to "page=last". Previously, users would write scripts linking to "page=99999" and the site would display the last page of comments. If you do that now, it'll display no results. Instead, if you want to be redirected to the last page of comments, link to "page=last".
  3. I also worked a bit on the messages page, so you'll see some improvement there. I won't call it "fast" (especially if you haven't opened it in a while and it needs to cache your data), but it's quicker than before.

In terms of numbers, discussions with a small number of comments were taking 0.07s to generate last week, and now they're down to 0.02s. Large discussions (15,000+ comments) are seeing significant improvement, going from over one second down to the same 0.02s.

11 months ago

Comment has been collapsed.

Nice thank you, any chance to look at the "my stats" page? That seems to take the longest for me.

11 months ago
Permalink

Comment has been collapsed.

There was an issue with the Personal - Steam page, where the database started choosing the wrong index to use, causing the page to load in 5 seconds instead of nearly instantly. That was fixed the other day. Most of the other stats pages have always been cached daily, so they also load almost instantly. The one that you're likely referencing, the Personal - Community page, was worked on a bit and will load slightly faster. However, if you have a large number of entries, it will still be incredibly slow to load.

11 months ago
Permalink

Comment has been collapsed.

I see, I notice it is loading a bit faster so that's cool. Does it take longer to load with more giveaways entered because it's constantly calculating the % chance to win and luck, since it has to look at every entry and take it's %?

Either way it doesn't bother me, since I don't go there constantly, so discussions being faster is the best improvement.

Off topic: Any chance to add a filter to hide all and future discussions from a user? I know we can hide individual discussions, but in the case we want to hide all from a specific user perpetually.

11 months ago*
Permalink

Comment has been collapsed.

Thanks, CG!

11 months ago
Permalink

Comment has been collapsed.

Is this the end of changes to comments or will you still be doing stuff in the background for the next few days?

ie. do we expect more changes that could effect scripts like ESGST ... so do we update scripts now knowing they are safe or wait a bit?

11 months ago
Permalink

Comment has been collapsed.

Hi Channel28, there are no more changes planned for comments at this time.

11 months ago
Permalink

Comment has been collapsed.

Thank you♪( 「'Θ')🔎💻

View attached image.
View attached image.
11 months ago
Permalink

Comment has been collapsed.

Thank you!

11 months ago
Permalink

Comment has been collapsed.

Sign in through Steam to add a comment.