Re: Parsing overhead for commenting out line endings
This WebDNA talk-list message is from 2003
It keeps the original formatting.
numero = 49197
interpreted = N
texte = The engine creates a new instance of the comment context for every [!] tokenit encounters. So, in the example below, the engine creates 11 contextinstances (for just one iteration of the loop). Without the extra comments,the engine would only create 5 context instances. However, the commentcontext code is fast and small, so the performance hit is not verysignificant. The new [return] context was created to eliminate the need touse those extra comment blocks when writing a function definition, as aconvenience to the programmer. And the code will run a bit faster.> -----Original Message-----> From: WebDNA Talk [mailto:WebDNA-Talk@talk.smithmicro.com]On Behalf Of> Rob Marquardt> Sent: Friday, April 04, 2003 3:08 PM> To: WebDNA Talk> Subject: Parsing overhead for commenting out line endings>>> I was looking through the 5.0 docs when I found this under> the [return]> context:>> > [function name=add_em_up][!]> > [/!][text]result=0[/text][!]> > [/!][loop start=1&end=10][!]> > [/!][text]result=[math][result]+[index][/math][/text][!]> > [/!][/loop][!]> > [/!][result][!]> > [/!][/function]> >> >> > Executing the above function, and wrapping the result with> URL tags, we get:> > 55> >> > The extra 'garbage' is gone, but using all those [!][/!]> pairs is cumbersome,> > and does add some extra parsing overhead.>> Just how *much* parsing overhead? An appreciable amount? I've> been doing> this damn near everywhere as a matter of course for years now.>> [suppressReturns] didn't make it into 5.0? ; )>>> Rob Marquardt> Designer/Resident Wirehead> Toast Design>> 800 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/-------------------------------------------------------------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:
The engine creates a new instance of the comment context for every [!] tokenit encounters. So, in the example below, the engine creates 11 contextinstances (for just one iteration of the loop). Without the extra comments,the engine would only create 5 context instances. However, the commentcontext code is fast and small, so the performance hit is not verysignificant. The new [return] context was created to eliminate the need touse those extra comment blocks when writing a function definition, as aconvenience to the programmer. And the code will run a bit faster.> -----Original Message-----> From: WebDNA Talk [mailto:WebDNA-Talk@talk.smithmicro.com]On Behalf Of> Rob Marquardt> Sent: Friday, April 04, 2003 3:08 PM> To: WebDNA Talk> Subject: Parsing overhead for commenting out line endings>>> I was looking through the 5.0 docs when I found this under> the [return]> context:>> > [function name=add_em_up][!]> > [/!][text]result=0[/text][!]> > [/!][loop start=1&end=10][!]> > [/!][text]result=[math][result]+[index][/math][/text][!]> > [/!][/loop][!]> > [/!][result][!]> > [/!][/function]> >> >> > Executing the above function, and wrapping the result with> URL tags, we get:> > 55> >> > The extra 'garbage' is gone, but using all those [!][/!]> pairs is cumbersome,> > and does add some extra parsing overhead.>> Just how *much* parsing overhead? An appreciable amount? I've> been doing> this damn near everywhere as a matter of course for years now.>> [suppressReturns] didn't make it into 5.0? ; )>>> Rob Marquardt> Designer/Resident Wirehead> Toast Design>> 800 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/-------------------------------------------------------------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/
Scott Anderson
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:
Re[2]: [format] problems (2000)
Sendmail (1998)
[SearchString] problem with [search] context (1997)
default value from Lookup (was Grant, please help me) (1997)
Cart problem (1999)
Webstar 1.3.1 PPC (1997)
Opinion: [input] should be called [output] ... (1997)
docs for WebCatalog2 (1997)
hiding blank fields (2003)
Version 2.0 and 1.6 simultaneous (1997)
Webdna 5.0 reference documentation (2003)
Sendmail doesn't (was Queertrons?) (1997)
Email Format (1998)
Calculating multiple shipping... (1997)
multiple record replace (2001)
WebCat2b13 Mac plugin - [sendmail] and checkboxes (1997)
using showpage and showcart commands (1996)
Completed Orders (2006)
No subject given (2000)
(2006)