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:

Dark Horse Comics success story (1997) Major bug report on rootbeer (1997) variables in template (2000) MacAuthorize hub, no modal password dialog? (1997) WebCatalog can't find database (1997) WebCat/CyberStudio Compatibility (1998) New command suggestion (was Modifying databases manually) (1997) Seeking WebCat Bulletin Board (1999) [ListFiles] & [loop] (1998) WebCat2b15MacPlugin - showing [math] (1997) WebCat2 several catalogs? (1997) Configuring E-mail (1997) can webcat create directories on NT? (1997) Search a date field by month only... (1999) Re2: Calculating multiple shipping... (1997) WebCat2: Master Counter snippet (1997) [/application] error? (1997) interesting (2003) Page Breaks (1999) [format xs] freeze (1997)