Re: copymemory basic question



mscir wrote:
> Have you seen this:
>
> http://www.aivosto.com/vbtips/not-optimize.html
>
> Static makes your app sooo static
>
> Did you know that Static local variables are slower than the normal
> Dim locals? One could think that Statics are faster as they don't
> need to get allocated every time you call the procedure. But it's not
> so. Use Dim unless you have to do Static.

Never had, no. Sure wish they offered some rationale for that, other than just
"because I said so." I've got an app here where it's clearly not the case. On some
machines, anyway. Would definitely be interesting to get to the bottom of it!
--
Working Without a .NET?
http://classicvb.org/petition


.



Relevant Pages

  • Re: Does C# have static local variables like C++?
    ... allow for static local variables, but there are solutions other than ... "what properties do these alternative ways have compared to local statics". ... There is no "additional complexity". ... Global variables exist for the entire lifetime of an ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: copymemory basic question
    ... Static lpTmp As Long ... Did you know that Static local variables are slower than the normal Dim locals? ... One could think that Statics are faster as they don't need to get allocated every time you call the procedure. ...
    (microsoft.public.vb.winapi)

Loading