Help with reduction in build time

I was hoping someone might have some tips on how to reduce build time for the site?

When I am using luna template without any edits in detailed template. System is building about 15 to 20 templates per second. However when I change it to custom build template, it is really really 'really' slow. Build time for each detailed pages is just under a second.

After removing 11 link properties (now managing multiple info in same field is gonna get interesting and few globals, seems like things have picked up little bit. Also, last weeks idea of setting up cron build ever 2-3 hours would be silly, since even with current speed it would take about 3-4 hours to do build all. I was under the impression quad core with 2gb ram would be okay, but seems like this might need more.

I mean I am having more link properties and globals at Web Hosting Kit, however when I just did build all there, it is processing that pretty fast (about 10 to 12 detailed pages/sec), while on Software Devil, right now it is taking about 1 to 3 seconds for each detailed page.

Can you think of anything besides the globals and link properties? (I do plan to do another test build after removing all (except default) globals.

Yeah it has little over 41k listings, while Web Hosting Kit has about 11k. However I was under the impression that GLinks might not show any signs of slowing down till its easily over 100k listings.

Now here is a weird thing - I am going to try to edit the template and see what could doing this:

Now assuming that, thing the design of detailed page in custom template is taking long time because of many instance of if/elseif and few include call, here is what I did:

1. Took the source code from custom template and pasted it in the footer of luna template and then thought of doing build all.

The funny thing is, it did build with pretty just normal speed and when I looked at the detailed page, it had all the proper tags in it. (well except the css formatting and images from custom template as the paths were wrong)

I am going to do some testing with review include and editing of other templates to see if anything can help.

Since if number of listings were a problem, then the problem should have slowed down this test build too.

oh man can't even pull my hairs - just had a haircut and its all military style.....

Finally found the solution. As after testing build of different template set with same database.. I think the whole system was slowing down because of the use of one little global. Global is still there in the global file, but removed it from the top of detailed.html and now it is building pages with very good speed (10 to 15 / sec). Also not to mention, as discussed above, removing unused global and few fields from link properties also seems to be helping.

Don't think anyone could be using that global, as it was just for this site. It was suppose to pull specific information and 'next' listings and display them on the page. I believe trying to retrieve that process is what was holding the system back. And to top everything, the feature is actually optional for the site :)

Gossamer Threads is a Vancouver-based company with over 23
years experience in web technology. From development to hosting, we
partner with leading organizations around the globe and help to build
their web presences, strategies and infrastructures.