Re: isdefined vs structkeyexists (was: cfinvoke or CreateObject)

2007-06-04 Thread Sean Corfield
On 6/4/07, Brad Wood <[EMAIL PROTECTED]> wrote: > You know, that's interesting seeing as how a JVM is supposed to be the > great equalizer which makes your code run the "same" on any platform. The functional behavior will be the same. Performance, OTOH, will depend on a number of factors. After a

Re: isdefined vs structkeyexists (was: cfinvoke or CreateObject)

2007-06-04 Thread Tom Chiverton
On Monday 04 Jun 2007, Brad Wood wrote: > You know, that's interesting seeing as how a JVM is supposed to be the > great equalizer which makes your code run the "same" on any platform. The optimisations the compiler will be able to perform will vary across systems. -- Tom Chiverton Helping to q

RE: isdefined vs structkeyexists (was: cfinvoke or CreateObject)

2007-06-04 Thread Brad Wood
ay, June 03, 2007 12:44 AM To: CF-Talk Subject: Re: isdefined vs structkeyexists (was: cfinvoke or CreateObject) It's platform specific. On OS X, structKeyExists() is always 20-30% faster under any circumstances. On Windows isDefined() is often faster. On 6/2/07, Brad Wood <[EMAIL PROT

Re: isdefined vs structkeyexists (was: cfinvoke or CreateObject)

2007-06-04 Thread Jochem van Dieten
Robertson-Ravo, Neil (RX) wrote: > Does IBM JVM work with Jrun/CF7/8 (on Windows)? CF is certified on some versions of WebSphere, WebSphere uses IBMs JVM so by extension CF works. Don't know about JRun though. Jochem ~| Create

Re: isdefined vs structkeyexists (was: cfinvoke or CreateObject)

2007-06-04 Thread Robertson-Ravo, Neil (RX)
orfield To: CF-Talk Sent: Mon Jun 04 02:50:26 2007 Subject: Re: isdefined vs structkeyexists (was: cfinvoke or CreateObject) On 6/2/07, Robertson-Ravo, Neil (RX) <[EMAIL PROTECTED]> wrote: > So, performance wise ColdFusion will fluctuate between OS? Not exactly the > best advert for perf

Re: isdefined vs structkeyexists (was: cfinvoke or CreateObject)

2007-06-04 Thread Robertson-Ravo, Neil (RX)
eld To: CF-Talk Sent: Mon Jun 04 02:50:26 2007 Subject: Re: isdefined vs structkeyexists (was: cfinvoke or CreateObject) On 6/2/07, Robertson-Ravo, Neil (RX) <[EMAIL PROTECTED]> wrote: > So, performance wise ColdFusion will fluctuate between OS? Not exactly the > best advert for perform

Re: isdefined vs structkeyexists (was: cfinvoke or CreateObject)

2007-06-03 Thread Sean Corfield
On 6/2/07, Robertson-Ravo, Neil (RX) <[EMAIL PROTECTED]> wrote: > So, performance wise ColdFusion will fluctuate between OS? Not exactly the > best advert for performance etc. If one OS is faster wouldn't more people > move or plan for that OS? It's not so much ColdFusion's performance as the unde

Re: isdefined vs structkeyexists (was: cfinvoke or CreateObject)

2007-06-02 Thread Robertson-Ravo, Neil (RX)
rily those expressed by Reed Exhibitions." Visit our website at http://www.reedexpo.com -Original Message- From: Sean Corfield To: CF-Talk Sent: Sun Jun 03 06:44:28 2007 Subject: Re: isdefined vs structkeyexists (was: cfinvoke or CreateObject) It's platform specific. On OS X, structKeyE

Re: isdefined vs structkeyexists (was: cfinvoke or CreateObject)

2007-06-02 Thread Sean Corfield
It's platform specific. On OS X, structKeyExists() is always 20-30% faster under any circumstances. On Windows isDefined() is often faster. On 6/2/07, Brad Wood <[EMAIL PROTECTED]> wrote: > I have done test with structkeyexists and isdefined and found that it > actually can depend on whether or no

Re: isDefined vs structKeyExists

2004-03-25 Thread Thomas Chiverton
On Wednesday 24 Mar 2004 23:12 pm, Philip Arnold wrote: > Also, variables with spaces in them should be subjected to public enquiry, lost, and finally buried in soft peat for three months and recycled as firelighters :-) -- Tom Chiverton Advanced ColdFusion Programmer Tel: +44(0)1749 834997

RE: isDefined vs structKeyExists

2004-03-24 Thread Philip Arnold
> From: Charlie Griefer > > Sean C's coding guidelines suggest (note the word 'suggest') that > structKeyExists() is preferrable over isDefined().  I believe > the reason cited was isDefined() is really parsing a string > (the function's argument), which is comparatively slower than > structKe

RE: isDefined vs structKeyExists

2004-03-24 Thread Pascal Peters
In 6.1 I can't see a difference for application scope. Of course there is a difference between IsDefined("attributes.MyVar") And structKeyExists(attributes, "MyVar") As the attributes scope doesn't always exist. Pascal > -Original Message- > From: Conan Saunders [mailto:[EMAIL PROTEC

Re: isDefined vs structKeyExists

2004-03-24 Thread Charlie Griefer
or a key in a struct. I've gotten into the structKeyExists() habit. - Original Message - From: "Philip Arnold" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Wednesday, March 24, 2004 4:12 PM Subject: RE: isDefined vs structKeyExists &g

RE: isDefined vs structKeyExists

2004-03-24 Thread Philip Arnold
> From: Conan Saunders > > In CFMX 6.1, are these two functions completely equivalent, > or is there a difference? > > isDefined("APPLICATION.MyVar") > > structKeyExists(APPLICATION, "MyVar") It also depends on the name of the variable Take for example a variable named "_data" You cannot do:

RE: isDefined vs structKeyExists

2004-03-24 Thread Steve Nelson
I know in previous versions they were different. Seems logical to me that they should work the same in MX since scopes are just regular structures. Steve Nelson   -Original Message-   From: Conan Saunders [mailto:[EMAIL PROTECTED]   Sent: Wednesday, March 24, 2004 5:32 PM   To: CF-Talk   S