Michael Dinowitz wrote: >>isn't structkeyexists better than structfindvalue? as our jedi friend >>says, after not evalutating, cflocking I think that's his next biggest tip > > It's better if you just want to know if the value exists. I need to know where > it exists. > > >>my experience is that structures are always *way* faster than lists or >>arrays.. basically because structures are key indexed > > Do you have any code to show this? I'm not seeing *way* faster.
ok, it depends on what we are talking about, I would usually use a single depth structure, ie kinda of denormalising the data structure... to provide an indexing function, that returns references, know what i mean? structfindvalue isn't going to be using hashing in cf is it? ie a full table scan... my approach is only to work via struct keys, as they are hash indexed anyway, throw some of your code up and we can explore the ideas... z ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm