Follow-Up to: Removing [showif] makes a big difference in speed

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 10780
interpreted = N
texte = Hi Grant,I had an idea for speeding things up a little on subsequent searches, and it worked.I moved the stuff which was previously enclosed in the [showif] context to a separate file and I used [include] to include that stuff in the [showif] context. My thinking was that if WebCat2 would have to open a separate file to get at this stuff, maybe it wouldn't open that file when the [showif] evaluates to 'false'.Apparently I was right about this, because my subsequent searches now take about 0.12 seconds. While this is not quite as fast as the 0.083 seconds I recorded when I removed the entire [showif] context for a test, it is certainly a lot better than waiting 17 seconds every time someone hits that page!Sincerely, Ken Associated Messages, from the most recent to the oldest:

    
  1. Follow-Up to: Removing [showif] makes a big difference in speed (Kenneth Grome 1997)
Hi Grant,I had an idea for speeding things up a little on subsequent searches, and it worked.I moved the stuff which was previously enclosed in the [showif] context to a separate file and I used [include] to include that stuff in the [showif] context. My thinking was that if WebCat2 would have to open a separate file to get at this stuff, maybe it wouldn't open that file when the [showif] evaluates to 'false'.Apparently I was right about this, because my subsequent searches now take about 0.12 seconds. While this is not quite as fast as the 0.083 seconds I recorded when I removed the entire [showif] context for a test, it is certainly a lot better than waiting 17 seconds every time someone hits that page!Sincerely, Ken Kenneth Grome

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

[accountNum] and [math] (1997) Pithy questions on webcommerce & siteedit (1997) WebCat2.0 [format thousands .0f] no go (1997) Multiple fields on 1 input (1997) FW: Modtime bug? (2002) RE: IIS4b2 and WebCatalog b19 (1997) Database Helper missing? (2000) page redirect in webDNA (1997) Admin User - Users.db (1999) Welcome Back (was) Newbie Question (1999) Q: old cart serial problem (2000) Multiple Pulldowns (1997) Cumulative Shipping charge calculations - your help please. (1997) problem: mail changed (1997) How to Display text in empty fields (1997) Webcat causing crashes left and right! (1997) WebCatalog can't find database (1997) more Dreamweaver Extensions feedback (2000) emailer settings and control questions (1997) Protect and Serve (1999)