On 10/16/07, Michael Dinowitz <[EMAIL PROTECTED]> wrote: > Theoretically, structisempty() simply checks if there's at least > 1 key in a structure and returns that information rather than counting each > key.
I can't speak for other JVM implementations, but Sun's implementation for Windows maintains an internal counter of the number of keys in the Map, so size() calls are fast regardless of the Map's size. Whether structCount and structIsEmpty use the size() method or not, I can't say, but I'd sure expect them to. I would expect all the Sun implementations to share this, as that stuff is implemented in Java, not native code, so it can be shared. Premature (or uninformed) optimization is one of the biggest sources of evil in programming. ;) cheers, barneyb -- Barney Boisvert [EMAIL PROTECTED] http://www.barneyb.com/ Got Gmail? I have 100 invites. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Check out the new features and enhancements in the latest product release - download the "What's New PDF" now http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291239 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

