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:

I think WebDNA-Talk died ... :( (1997) Javascript and Search Results (1998) Setting up WebCatalog with Retail Pro data (1996) & in Lookups (1997) [WebDNA] Version 7 Config problem (2011) Error: Permision deny. (2005) Re:WebCatalog/WebMerchant III (1998) Help! WebCat2 bug (1997) Re:Merging databases (1997) Showif, Hideif reverse logic ? (1997) Cookie still not working (1999) Google does it... can WebDNA? Showing only the section (2003) Not really WebCat- (1997) Multi-processor Mac info ... (1997) RE: redirect with more than 256 characters (1999) WebCat2: Items xx to xx shown, etc. (1997) multiple record replace (2001) RequiredFields template (1997) Quit revisited (1997) raw=T is broken in [include] (1997)