Welcome to Geeklog, Anonymous Monday, November 25 2024 @ 06:26 pm EST
Geeklog Forums
More Performance Enhancements
Status: offline
vinny
Site Admin
Admin
Registered: 06/24/02
Posts: 352
Location:Colorado, USA
I've gone hunting through the code again trying to reduce the number of database calls and improve performance. I've found a few things that, when combined, can increase performance for the geeklog index page by about 5-10%. More details about the improvements and code can be found on my website.
Unfortunately, the improvements are not as significat as the previous ones. Therefore, unless you're really interested in code/database optimization issues or feel you need to eek out a little more performance for your site I wouldn't necessarily recommend spending the time hacking these changes into your Geeklog site.
Enjoy, Vinny
15
12
Quote
Anonymous
Anonymous
Giant increase in speed... well done.
Around 50-60% for me.
12
9
Quote
Status: offline
rawdata
Forum User
Full Member
Registered: 02/17/03
Posts: 236
I just added your enhancements. There's some sort of bug in the COM_showTopics function because when I add this it makes all my topics disappear in the menu. When I remove it, they reappear. I'll try later on today to figure out what's causing it.
Thanks for focusing on performance improvements.
10
8
Quote
Status: offline
vinny
Site Admin
Admin
Registered: 06/24/02
Posts: 352
Location:Colorado, USA
This might be a dumb bug that I didn't see because of my MySQL configuration. Try changing both occurances of:
$A['topic']
to
$A['t.topic']
and see if that works, if it does I'll update the code on my webpage immediately. If it doesn't I'll keep looking into it, though to investigate further I may need to sneak a peek at your topics and stories tables.
Thanks for the input,
Vinny
13
9
Quote
Status: offline
rawdata
Forum User
Full Member
Registered: 02/17/03
Posts: 236
The numbers disappear as well. What's really odd is the only topic that stays visible is the one labeled Geeklog. When I tried the $A['t.topic'] suggestion that made Geeklog disappear too, but the numbers for it stayed.
I'll find the little sucker.
10
13
Quote
Status: offline
rawdata
Forum User
Full Member
Registered: 02/17/03
Posts: 236
Okay, I figured this out. On my test site, I had deleted all the stories under all the different topics except for one -- Geeklog. Apparently, you redesigned the script so it only displays a topic if it has at least one story is listed under it. That's why all my topics disappeared except for the one. When I added stories back to the others, all the topics reappeared.
If you intentionally designed the script this way, then it's not a bug. Just seemed like one since I wasn't expecting this but I have no problem with this approach.
13
12
Quote
All times are EST. The time is now 06:26 pm.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content