Re: removing programming logic white space

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 50998
interpreted = N
texte = on 6/9/2003 4:20 pm, Brian Fries at webdna@brainscansoftware.com so noted...> Tons faster. Once I saw the difference, I didn't bother with time > trials, just changed my coding style... I found that the number of > context that WebDNA has to deal with has a great effect on its > performance. Replacing dozens of comment contexts with a single grep > makes a big difference.Very cool! I was comparing a loop containing five comment tags and one that had carriage returns removed with a single [grep] and grep was twice as fast! I'm definitely going to be revisiting some time-critical code on the server -- thanks for the tip!Also, if the method is being used multiple times on a page, the entire argument string can be put into a variable for brevity:[text]ss=search=[%0D%0A][%0D%0A%09]*&replace=%0D[/text][grep [ss]] ... [/grep] Rob Marquardt Designer/Resident Wirehead Toast Design800 Washington Avenue North Minneapolis MN 55401 612.330.9863 v 612.321.9424 f www.toastdesign.com ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: removing programming logic white space (Rob Marquardt 2003)
  2. Re: removing programming logic white space (Kenneth Grome 2003)
  3. Re: removing programming logic white space (Dale LaFountain 2003)
  4. Re: removing programming logic white space (Brian Fries 2003)
  5. Re: removing programming logic white space (Alain Russell 2003)
  6. Re: removing programming logic white space (Rob Marquardt 2003)
  7. Re: removing programming logic white space (Alain Russell 2003)
  8. Re: removing programming logic white space (Rob Marquardt 2003)
  9. Re: removing programming logic white space (Dale LaFountain 2003)
  10. Re: removing programming logic white space (Lucas Rockwell 2003)
  11. Re: removing programming logic white space (Rob Marquardt 2003)
  12. Re: removing programming logic white space (Glenn Busbin 2003)
  13. Re: removing programming logic white space (Rob Marquardt 2003)
  14. Re: removing programming logic white space (Brian Fries 2003)
  15. Re: removing programming logic white space (Rob Marquardt 2003)
  16. Re: removing programming logic white space (Lucas Rockwell 2003)
  17. Re: removing programming logic white space (Brian Fries 2003)
  18. Re: removing programming logic white space (Lucas Rockwell 2003)
  19. Re: removing programming logic white space (devaulw@onebox.com 2003)
  20. removing programming logic white space (Lucas Rockwell 2003)
on 6/9/2003 4:20 pm, Brian Fries at webdna@brainscansoftware.com so noted...> Tons faster. Once I saw the difference, I didn't bother with time > trials, just changed my coding style... I found that the number of > context that WebDNA has to deal with has a great effect on its > performance. Replacing dozens of comment contexts with a single grep > makes a big difference.Very cool! I was comparing a loop containing five comment tags and one that had carriage returns removed with a single [grep] and grep was twice as fast! I'm definitely going to be revisiting some time-critical code on the server -- thanks for the tip!Also, if the method is being used multiple times on a page, the entire argument string can be put into a variable for brevity:[text]ss=search=[%0D%0A][%0D%0A%09]*&replace=%0D[/text][grep [ss]] ... [/grep] Rob Marquardt Designer/Resident Wirehead Toast Design800 Washington Avenue North Minneapolis MN 55401 612.330.9863 v 612.321.9424 f www.toastdesign.com ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Rob Marquardt

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:

Who is doing sign-ups-got it (1998) The List is Changing (1997) Problems passing [SKU] with $Replace in 2.0 (1997) I give up!! (1997) WCS Newbie question (1997) bug in [SendMail] (1997) E-mailer error codes (1997) Nested Loops and SHOWIFs (1997) removing commas from a preformatted number (2000) Show all from database (2001) UPDATE PROBLEM (1997) NT Processor Woes (2000) Unix webcat perms & multiple versions of same db in cache issue (2000) [WebDNA] General email error -1 (WebDNA 7) (2012) webcat2b12 CGI -- Date comparisons (1997) Problems appending to database (1997) RE: Help name our technology! (1997) Size limit for tmpl editor ? (1997) Problem with empty form-variables in [search] (1998) E-Mail (1998)