Re: lookups or math?
This WebDNA talk-list message is from 1998
It keeps the original formatting.
numero = 15958
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.Grant Hulbert, V.P. Engineering | ==== eCommerce for the Rest of Us ====Pacific Coast Software | WebCatalog, WebMerchant,11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster,San Diego, CA 92128 | Typhoon619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/
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.Grant Hulbert, V.P. Engineering | ==== eCommerce for the Rest of Us ====Pacific Coast Software | WebCatalog, WebMerchant,11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster,San Diego, CA 92128 | Typhoon619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/
Grant Hulbert
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:
encrypt/decrypt failing (2000)
Logging purchases (1997)
WebMerchant 1.6 and SHTML (1997)
Search crashing server (1998)
[random] only for 1-100??? (1997)
writing db to disk (1997)
WebCatalog2 Feature Feedback (1996)
Need relative path explanation (1997)
Contest (1999)
Assigning carts (1998)
SendMail context not working on CentOS 4 (2007)
Has this happened to you? (was:Emailer Chokes on bad address) (1997)
WC2b15 - [HTMLx]...[/HTMLx] problems (1997)
[OT] Server For Sale (2003)
Summary search -- speed (1997)
Associative lookup style? + bit more (1997)
minimalist shopping cart. (1997)
Help name our technology! (1997)
Taget _top (2000)
showif comparison begins w/ and contains (1997)