Re: VB6+ Article in VSM by Bill McCarthy
From: Dan Barclay (Dan_at_mvps.org)
Date: 03/08/04
- Next message: Michael Beatty: "Ad-In Spell Checker"
- Previous message: Michael Beatty: "MaskEd control"
- In reply to: Gary Nelson: "Re: VB6+ Article in VSM by Bill McCarthy"
- Next in thread: Carl Gundel: "Re: VB6+ Article in VSM by Bill McCarthy"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 8 Mar 2004 16:56:37 -0600
Gary,
I use native, and I do see speed increase on my critical code. However, the
critical code is probably different than yours. It's an interpreter working
on integer arrays (state machine using integers).
Compiled code can be a big help on speed and, had they really done things
right, it would always be faster. Too bad it isn't. YMMV! Bottom line is
that developers simply have to test it both ways with their own code. Also,
benchmarks of snippets don't always tell the story either.
The *only* valid reason I know of that interpreted code should be faster
would be a very small loop that might remain entirely in the cpu pipeline vs
larger native code footprint that would have to be retrieved from memory.
In practice, that really doesn't seem to happen very often. Not that it
matters, since neither seem to have been optimized for that.
Dan
"Gary Nelson" <gn@nospam.com> wrote in message
news:OwSjLCUBEHA.2484@TK2MSFTNGP12.phx.gbl...
> > Hmmm... What are the PRO's of using Pee-Code?¿?
>
> I use PCode quite extensively, except for very small programs.
>
> 1) Compile time: It compiles much faster which can be very significant in
a
> large exe that might get compiled several times in a day's work.
>
> 2) It is less than half the size. This is very significant if you are
> sending it over then Internet.
>
> Comparison of a typical program on a P-IV 3.06 GHz.:
>
> PCode Native
> ===================================
> Compile time: 16 sec. 60 sec.
> Exe. size: 2.098 MB 5.688 MB
> Zip size: 788 KB 1.724 MB
>
> After having done extensive testing I have seen very little perceptible
> speed increase using native compile. Also, since I am an old-timer I have
a
> lot of GoSubs, which are much faster with PCode.
>
> Gary
>
>
- Next message: Michael Beatty: "Ad-In Spell Checker"
- Previous message: Michael Beatty: "MaskEd control"
- In reply to: Gary Nelson: "Re: VB6+ Article in VSM by Bill McCarthy"
- Next in thread: Carl Gundel: "Re: VB6+ Article in VSM by Bill McCarthy"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|