> Yeah, sure, I guess... there's always several sensible ways to solve > any problem tho' :)
LOL, as always... :) I did a brief check creating 10000 instances of a (reasonably simple) component using createobject(), <cfobject> and my store.get() method and got the following timings: --------------------------------------------- Object creation timings (10000 instances) createobject() : 2965ms (0.2965ms pi) <cfobject> : 2864ms (0.2864ms pi) object store : 23013ms (2.3013ms pi) store (no timecheck) : 1452ms (0.1452ms pi) --------------------------------------------- Obviously there's hardly any discernable time difference with a small number of instantiations but on a heavily loaded server it's going to make a difference. The first "object store" results are taken with the store in "development mode" where on every instance call, an instantiation timestamp is checked against the last modified time of the actual .cfc file and if there's a difference the object is recreated. It's the file access which slows this down to such an extent -- you can see that with this option turned off (the second "store" results) it flies along... Cheers for the help Sean. Tim. ------------------------------------------------------- RAWNET LTD - Internet, New Media and ebusiness Gurus. Visit our new website at http://www.rawnet.com for more information about our company, or call us free anytime on 0800 294 24 24. ------------------------------------------------------- Tim Blair Web Application Engineer, Rawnet Limited Direct Phone : +44 (0) 1344 393 441 Switchboard : +44 (0) 1344 393 040 ------------------------------------------------------- This message may contain information which is legally privileged and/or confidential. If you are not the intended recipient, you are hereby notified that any unauthorised disclosure, copying, distribution or use of this information is strictly prohibited. Such notification notwithstanding, any comments, opinions, information or conclusions expressed in this message are those of the originator, not of rawnet limited, unless otherwise explicitly and independently indicated by an authorised representative of rawnet limited. ------------------------------------------------------- ---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [EMAIL PROTECTED] with the word 'unsubscribe cfcdev' in the message of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by Mindtool, Corporation (www.mindtool.com).
