Performance question

  • Thread starter Thread starter Crirus
  • Start date Start date
C

Crirus

Hello!

Is there a performance hit if I use Property get instead direct value of a
class?
 
Hi Crirus,

Of course it is minimal 2 times as slow.
But the amount of instructions used will be minimal.

Maybe

About 1000000000000000/2 comparing it with moving your mouse one centimeter
over your screen.

That number 10000000000000000 is not real measured I hope you understand
that.

:-))

Cor
 
Crirus said:
Is there a performance hit if I use Property get instead direct value
of a class?

I was happy when I found out that simple property-get procedures only
returning a field got converted to inline code when optimizations had been
enabled (at least in the case I examined). Means: Accessing them is as
quick as accessing public fields.
 
That's what I need to know.. thanks
Any hints about that optimisation?
 
These optimizations are handled by the JIT Compiler. You don't need to do
anything for that to happen. Isn't .NET life just great? ;-)
 
Crirus said:
That's what I need to know.. thanks
Any hints about that optimisation?

I enabled it in the project properties: configuration properties ->
optimizations: [x] enable optimizations
 
So, as a conclusion? :)

If you care about that sort of performance hit, you shouldn't be using
a language like VB.net or even C++. Write everything in MASM.

--Jekke
==
To e-mail me, deobfuscate jekkeATinsidejokeDOTtv.
 
LOL

No I just want to use the best one... available on NET..I draw something big
in loops so any improovement in a loop is good
 
OK, thanks.. I just hoped to do it so...


--
Ceers,
Crirus

------------------------------
If work were a good thing, the boss would take it all from you

------------------------------

Armin Zingler said:
Crirus said:
That's what I need to know.. thanks
Any hints about that optimisation?

I enabled it in the project properties: configuration properties ->
optimizations: [x] enable optimizations


--
Armin

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top