Re: IsNothing(_myVar) vs. _myVar Is Nothing



just test it:
this tool is great, easy to use (even I was able, hehe) and free: DevPartner
Profiler
http://www.compuware.com/products/devpartner/resources/profiler/profiler.asp?code=1D570B6B475F56425E47576F59454645415E476A5E405A575B514544725556405E5347474057436B5C5440595B4056565D6E414541575A5A4B4069575E42060700544B5350051A01181D03071E04

"Dave Taylor" <no_spam_dave@xxxxxxxxxxxxxx> wrote in message
news:%23MZT1v2oFHA.1872@xxxxxxxxxxxxxxxxxxxxxxx
> This is really not very important but something that I'm just curious
> about...which is faster to execute or are they the same:
>
> (1) If IsNothing(_myVar) Then ...
>
> or
>
> (2) If _myVar Is Nothing Then ...
>
> I find myself using #1 most frequently but for no real reason other than I
> like the way it looks.
>
> -- Dave
>
>


.



Relevant Pages

  • Re: Code profiling for VC++ in Visual Studio 7.1?
    ... There isn't an MS supplied profiler in VC7. ... using the free Numega profiler: ... Dave ... Prev by Date: ...
    (microsoft.public.vc.ide_general)
  • Re: Problem with C# Testing tool
    ... > I am using devpartner to try to locate the slow areas in my application. ... > I am using the free community edition version. ... but every Profiler I've used until now ... You want to measure the time it takes to draw *one single line*? ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: When do YOU optimize?
    ... Like Dave, I generally write it as fast as possible. ... I'll start running it thru a profiler (AQTime). ... Then I investigate, and refactor if possible. ...
    (borland.public.delphi.non-technical)
  • Re: is allocate really this slow?
    ... >If you can't get hold of a profiler ... Canadian Mind Products, Roedy Green. ... http://mindprod.com Again taking new Java programming contracts. ... Prev by Date: ...
    (comp.lang.java.programmer)
  • Re: Are byte types a smart choice?
    ... >DevPartner has a free "Community Edition" profiler. ... it may have a memory profiling aspect, ...
    (microsoft.public.dotnet.csharp.general)