Re: [WebDNA] listwords words=GastlyAmount
This WebDNA talk-list message is from 2009
It keeps the original formatting.
numero = 102627
interpreted = N
texte = Brian Fries wrote:> Donovan,> > Listwords can handle thousands of words fine. I use it in a several > tools of mine that you've seen and used for things like custom parsing > and substitutions on articles and pages (think cortex and dnabrain). > Depending on what you're doing inside the loop, of course, it could take > a while, but listwords will do it's job fine.> > Good debugging techniques like testing the code on small and medium > sized samples before throwing the GastlyAmount at it are highly > recommended. A thousand or two words is not all that huge for admin-type > activities, but you wouldn't want to do that on high traffic pages if > there's another way.> > Brian Fries> BrainScan SoftwareThanks Brian,.. just ran this test code below and the result was only33 tics (about half a second) :-).. so right, I don't think I have to worry in my situation.
ListWords Test[text]tElapsed=[elapsedtime][/text][tElapsed]
[text]thewords=[loop start=1&end=10000]blah[showif [index]=2000]poof[/showif] [/loop][/text][listwords words=[thewords]][showif [word]^poof]Word#
[index] contains 'poof'
[/showif][/listwords]
[elapsedtime][text]tElapsed=[math][elapsedtime]-[tElapsed][/math][/text]
[tElapsed] tics.([math][tElapsed]\60[/math] seconds)-- Donovan BrookeWebDNA Software Corporationhttp://www.webdna.us**[Square Bracket Utopia]**
Associated Messages, from the most recent to the oldest:
Brian Fries wrote:> Donovan,> > Listwords can handle thousands of words fine. I use it in a several > tools of mine that you've seen and used for things like custom parsing > and substitutions on articles and pages (think cortex and dnabrain). > Depending on what you're doing inside the loop, of course, it could take > a while, but listwords will do it's job fine.> > Good debugging techniques like testing the code on small and medium > sized samples before throwing the GastlyAmount at it are highly > recommended. A thousand or two words is not all that huge for admin-type > activities, but you wouldn't want to do that on high traffic pages if > there's another way.> > Brian Fries> BrainScan SoftwareThanks Brian,.. just ran this test code below and the result was only33 tics (about half a second) :-).. so right, I don't think I have to worry in my situation.
ListWords Test[text]tElapsed=
[elapsedtime][/text][tElapsed]
[text]thewords=[loop start=1&end=10000]blah[showif [index]=2000]poof[/showif] [/loop][/text][listwords words=[thewords]][showif [word]^poof]Word#
[index] contains 'poof'
[/showif][/listwords]
[elapsedtime][text]tElapsed=
[math][elapsedtime]-[tElapsed][/math][/text]
[tElapsed] tics.(
[math][tElapsed]\60[/math] seconds)-- Donovan BrookeWebDNA Software Corporationhttp://www.webdna.us**[Square Bracket Utopia]**
Donovan Brooke
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:
Summing fields (1997)
WebCat for mass emailings (1997)
Just Testing (1997)
Two stores, one server (1998)
off topic - dna snipets (1997)
New command suggestion (was Modifying databases manually) (1997)
transferring values (1998)
RE: [shownext] support - MacOS (1997)
using showpage and showcart commands (1996)
Webcatalog error, Plug-in for Webstar (1996)
emailer (1997)
Bug Report, maybe (1997)
ichat (2003)
blank page from template (1997)
Help name our technology! (1997)
[cart] not being interpreted inside [founditems] (1997)
mySQL GROUP BY Aggregate Function Problem (2005)
Frames and WebCat (1997)
Not really WebCat (1997)
still having shipCost.db Problem (1997)