Re: lookups or math?
This WebDNA talk-list message is from 1998
It keeps the original formatting.
numero = 15961
interpreted = N
texte = >>If I have to do the same lookup a bunch of times on the same page -- in order to use the results in a bunch of separate showif contexts, is it faster to simply use that lookup in every showif comparison where it's needed on the page ...>>>>... or would it be better to do the lookup just once at the top of the page and set a math variable with that lookup, and then use [math]variable[/math] inside the showifs on the rest of the page?>>It's usually faster to use the [math] technique, as long as your variable is numeric.That's what I figured, now I can do the lookup once at the top, clean up my code, and add speed -- all at once ... :)Sincerely,Ken Gromeken@iav.com808-737-6499WebDNA Solutionshttp://webdna.net/
Associated Messages, from the most recent to the oldest:
>>If I have to do the same lookup a bunch of times on the same page -- in order to use the results in a bunch of separate showif contexts, is it faster to simply use that lookup in every showif comparison where it's needed on the page ...>>>>... or would it be better to do the lookup just once at the top of the page and set a math variable with that lookup, and then use
[math]variable[/math] inside the showifs on the rest of the page?>>It's usually faster to use the
[math] technique, as long as your variable is numeric.That's what I figured, now I can do the lookup once at the top, clean up my code, and add speed -- all at once ... :)Sincerely,Ken Gromeken@iav.com808-737-6499WebDNA Solutionshttp://webdna.net/
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:
Calendar (1997)
encrypt and decrypt (2001)
select multiple 2 more cents (1997)
[WebDNA] [OT] the "Work in progress" thread. (2009)
where to put code (1998)
MySQL and Numbers (2005)
[WebDNA] Anyone using CODA ?? (2012)
convertchars and case? (1998)
Re:Searching for ALL / empty form field (1997)
Multiple adding (1997)
Superfilous Characters (1998)
Re:Still More on EudoraPro Email (1998)
RE: [WebDNA] Help me install (WebDNA 7 fastcgi install on Lion (2012)
WebCommerce: Folder organization ? (1997)
Requiring that certain fields be completed (1997)
Whats going on? (2000)
multiple record replace (2001)
send mail problem? (1997)
SASL Support in WebDNA (2004)
Summing fields (1997)