[WebDNA] Optimizing for speed

This WebDNA talk-list message is from

2010


It keeps the original formatting.
numero = 105609
interpreted = N
texte = Grant once told me that when a page has an include tag inside a showif, the webdna code in that include page is NOT parsed unless the showif evaluated to "true". This suggests that when there's a lot of webdna code that needs to be parsed, it will be faster to put that content into separate include files than to put it into the main template. For example, this is expected to be slower: [showif [var]=xxx] Lots of webdna code here ... [/showif] [showif [var]=yyy] Lots of webdna code here ... [/showif] [showif [var]=zzz] Lots of webdna code here ... [/showif] ... and this should be faster: [showif [var]=xxx] [include file=xxxCode] [/showif] [showif [var]=yyy] [include file=yyyCode] [/showif] [showif [var]=zzz] [include file=zzzCode] [/showif] My question is simple: Is this actually true, or did I misunderstand Grant's explanation from many years ago? Sincerely, Kenneth Grome Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] Optimizing for speed (Govinda 2010)
  2. [WebDNA] Optimizing for speed (Kenneth Grome 2010)
Grant once told me that when a page has an include tag inside a showif, the webdna code in that include page is NOT parsed unless the showif evaluated to "true". This suggests that when there's a lot of webdna code that needs to be parsed, it will be faster to put that content into separate include files than to put it into the main template. For example, this is expected to be slower: [showif [var]=xxx] Lots of webdna code here ... [/showif] [showif [var]=yyy] Lots of webdna code here ... [/showif] [showif [var]=zzz] Lots of webdna code here ... [/showif] ... and this should be faster: [showif [var]=xxx] [include file=xxxCode] [/showif] [showif [var]=yyy] [include file=yyyCode] [/showif] [showif [var]=zzz] [include file=zzzCode] [/showif] My question is simple: Is this actually true, or did I misunderstand Grant's explanation from many years ago? Sincerely, Kenneth Grome 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:

HELP WITH DATES (1997) WebCatalog Q & A pages (1997) Problem with summary on date / inconsequent webcat behaviour (1998) Buying sans cart (1997) Summing fields (1997) WebCat2.0b15-to many nested [xx] tags (1997) [TaxableTotal] - not working with AOL and IE (1997) How to implement 'email to a friend' feature? (2002) Server slowing down. (1997) OT - royalty free images (2002) Forms Search Questions (1997) remotely add + sign (1997) [WebDNA] Listfiles and sort order (2010) embedded showif statements (2000) Shipping Calculation Problem (1997) Multiple Pulldowns (1997) What about that Cc and Bcc bug? (2000) [WebDNA] [OT] WebDNA Wiki - need grammar check / suggestions (2009) HELP-1!!! (1998) Show shoppingcart after remove last item (1997)