Could you alter cf_accelerate to use the newer notation structKeyExists() instead of isDefined() and see if that is any zippier?
Chris -----Original Message----- From: Terry Ford [mailto:[EMAIL PROTECTED] Sent: Monday, October 09, 2006 10:38 PM To: CF-Talk Subject: Building a Better CF_Accelerate? Hey folks... Haven't been here in a while, but thought I'd pop in and see if anyone has developed a more efficient partial-page caching tag in the last couple of years. We have used CF_Accelerate (by Brandon Purcell) for 3 years now, and it has help us wonderuflly. For those who don't know what it is, it caches parts of a page in a struct-based memory structure. It has worked well to cache data for various periods of time, essentially cutting out all processing / queries for the code around which it appears. We handle upwards of 25 million CFM pageviews (heavy db use) a month on a single dual xeon box, hosting mysql and httpd on the same machine, so caching has been essential. One modification we made to speed it up was to use named locks on the primary/secondary keys in order to speed up lock waiting that was occurring. Anyway, I was wondering if anyone has come up with a more optimized/efficient CF_Accelerate-esque tag over the past couple of years. During peak times when the server is being hit hard, I've noticed that the CF_Acclerate code itself seems to have execution times that, while still fairly fast, could be improved. I suspect it has something to do with structs growing too large and operations like isdefined(struct.key.key2) slowing down. I recall reading a thread somewhere about how CFMX can be either efficient or very inefficient when dealing with large structs depending on how the key names are distributed. Perhaps hashing secondary key names would improve the seek times on them? Except perhaps the hashing overhead itself would erase any improvement... Regards Terry ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:256086 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4