• Welcome to Valhalla Legends Archive.
 

VB: P-Code OR Optimized Code (when compileing)

Started by phvckmeh, October 09, 2004, 07:46 PM

Previous topic - Next topic

phvckmeh

This is based on what i know

P-Code
Pros: Smaller EXE Files, Less memory usage

Optimized code
Pros: Faster code?
Cons: More memory usage (so its accutally slower)

I dont know which do use...

UserLoser.

Quote from: forum.valhallalegends.com
Battle.net Bot Development

Quote from: You
A post un-related to Battle.net Bot Development

phvckmeh

Quote from: UserLoser on October 09, 2004, 07:59 PM
Quote from: forum.valhallalegends.com
Battle.net Bot Development

Quote from: You
A post un-related to Battle.net Bot Development

Yeah im compiling my bot, and i wonder which would be better

BaDDBLooD

Wouldn't that depend if it was Ops, Chat, Annoying Flood/Mass Bot?
There are only two kinds of people who are really fascinating: people who know absolutely everything, and people who know absolutely nothing.

Yoni

Don't use P-Code; that's all there is to it.

phvckmeh

Quote from: Yoni on October 09, 2004, 08:28 PM
Don't use P-Code; that's all there is to it.

Any reasons why? It seems to be faster+more stable when i use it, also half the exe size and half the ram usage.....

Tuberload

The whole point of pcode is to shrink the executable size. The fact that VB requires a few megs in dependencies kind of makes that a waste IMO.
Quote"Pray not for lighter burdens, but for stronger backs." -- Teddy Roosevelt
"Your forefathers have given you freedom, so good luck, see you around, hope you make it" -- Unknown

BaDDBLooD

Quote from: Tuberload on October 09, 2004, 08:48 PM
The whole point of pcode is to shrink the executable size. The fact that VB requires a few megs in dependencies kind of makes that a waste IMO.

Atleast it makes all the dumb people think your app is small ^_^
There are only two kinds of people who are really fascinating: people who know absolutely everything, and people who know absolutely nothing.

OnlyMeat

Quote from: phvckmeh on October 09, 2004, 07:46 PM
This is based on what i know

P-Code
Pros: Smaller EXE Files, Less memory usage

Optimized code
Pros: Faster code?
Cons: More memory usage (so its accutally slower)

I dont know which do use...

P-Code = pseudo code = interpreted at runtime = slower than native code.

It's as simple as that.

phvckmeh

Well personaly the p-code has been running better, i get faster startup times, and it uses about 4 megs less ram...

Puzzle

Why would your bot use more than 4 to begin with?

Grok

There are times you will want to use p-code.  VB sometimes gets weird errors (application exceptions) on otherwise harmless-looking lines of code when it is compiled to machine code.  If you recompile it to p-code, those errors go away.  So the machine code compiler for VB is not perfect.  I write enough code that I see this condition once every 3-4 months.

phvckmeh

#12
Quote from: Puzzle on October 10, 2004, 05:00 AM
Why would your bot use more than 4 to begin with?

:) it went from 6.3megs to 2.4