|
hosamaly wrote: I am thinking that the JIT should be intelligent enough to actually inline both methods. But is this assumption true?
Nobody (apart from the Microsoft CLR team) knows exactly under which circumstances the JIT optimizes code. While the JIT probably is intelligent enough to see that the function can be inlined, it still might decide not to do so based on other parameters.
So in your case, if you're really concerned about performance you probably should inline it yourself - it'll always be a compromise between modularity/readability and performance.
This article[^] and this blog entry[^] talk a bit about the JIT method inlining, you may want to take a look at them.
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
You are micro-optimising. In any normal situation it will not make any real difference if the method is inlined or not.
If you really need that litte extra performance, you should probably not only inline this method, but the method that you are calling also...
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
You're right. I'm just trying to write micro-optimized code that is maintainable to some level. I'm introducing a wrapper layer for some external functions, but performance is at premium, so I'm trying to optimize it as much as possible, without exposing the external interfaces to other layers.
Many thanks to all helpful guys here in CP!
I really appreciate your help.
Know me better
|
|
|
|
|
If you really need to optimise the code so much that you need the methods to be inlined, you are way beyond maintainable code. If you are still thinking of maintainable code, you should not bother with the tiny performance difference that inlining methods means.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Hello everyone,
I am reading WSDL and SOAP spec and my purpose is to learn Spec/protocol details, for example, the component model of WSDL/SOAP and meaning/relationship between sections of messages/XML.
Now I am learning from Spec, but find it so boring to learn and not very readable.
http://www.w3.org/TR/wsdl20/
http://www.w3.org/TR/2007/REC-soap12-part0-20070427/
My question is whether there is more readable documents or turorials? Or learning web sites?
thanks in advance,
George
|
|
|
|
|
Has any one has done this , who is online of the user who has given his valid credentials.
“You will never be a leader unless you first learn to follow and be led.”
–Tiorio
"Coming together is a beginning, staying together is progress, and working together is success." Henry Ford
|
|
|
|
|
Mogaambo wrote: Has any one has done this
i dont think you can, not unless you work for Google and have access to their systems...
Harvey Saayman - South Africa
Junior Developer
.Net, C#, SQL
you.suck = (you.Passion != Programming & you.Occupation == jobTitles.Programmer)
1000100 1101111 1100101 1110011 100000 1110100 1101000 1101001 1110011 100000 1101101 1100101 1100001 1101110 100000 1101001 1101101 100000 1100001 100000 1100111 1100101 1100101 1101011 111111
|
|
|
|
|
Then how meebo done, and also koolim done that task
“You will never be a leader unless you first learn to follow and be led.”
–Tiorio
"Coming together is a beginning, staying together is progress, and working together is success." Henry Ford
|
|
|
|
|
who are they?
why not try and search Google API[^]
Harvey Saayman - South Africa
Junior Developer
.Net, C#, SQL
you.suck = (you.Passion != Programming & you.Occupation == jobTitles.Programmer)
1000100 1101111 1100101 1110011 100000 1110100 1101000 1101001 1110011 100000 1101101 1100101 1100001 1101110 100000 1101001 1101101 100000 1100001 100000 1100111 1100101 1100101 1101011 111111
|
|
|
|
|
check this sites
x17.iloveim.com
www.meebo.com
www.koolim.com
“You will never be a leader unless you first learn to follow and be led.”
–Tiorio
"Coming together is a beginning, staying together is progress, and working together is success." Henry Ford
|
|
|
|
|
well if it is possible, then google must make the information available via an API
Harvey Saayman - South Africa
Junior Developer
.Net, C#, SQL
you.suck = (you.Passion != Programming & you.Occupation == jobTitles.Programmer)
1000100 1101111 1100101 1110011 100000 1110100 1101000 1101001 1110011 100000 1101101 1100101 1100001 1101110 100000 1101001 1101101 100000 1100001 100000 1100111 1100101 1100101 1101011 111111
|
|
|
|
|
Mogaambo wrote: Then how meebo done, and also koolim done that task
Because they are IM clients. Here's[^] how it's done.
|
|
|
|
|
but i want of google, so if u have similar link then it will very helpful to me
“You will never be a leader unless you first learn to follow and be led.”
–Tiorio
"Coming together is a beginning, staying together is progress, and working together is success." Henry Ford
|
|
|
|
|
|
i don't think that was the correct way to implement because it does not asks for password.
“You will never be a leader unless you first learn to follow and be led.”
–Tiorio
"Coming together is a beginning, staying together is progress, and working together is success." Henry Ford
|
|
|
|
|
How can i create the registries ? i made a image Editor software. now i want that only authorize person can only access to it via registry..
i dont know about it...
plz explain me in simple form or words which can i understand....
and with some code
hghghgh
|
|
|
|
|
Hello,
I noticed today that the System.Runtime.InteropServices.Marshal class has overloads of the Copy method in the form: Copy(IntPtr source, int[] destination, int startIndex, int length); , but there are no overloads for unsigned data (e.g. uint ). I wonder why?
Thanks in advance.
|
|
|
|
|
Perhaps because uint type is not CLS[^]-compliant.
|
|
|
|
|
Thanks. But I'm wondering, since I'm creating a class library with methods that take uint , does this mean the library will not be usable except in C#?
|
|
|
|
|
You dont have problem with existing languages like c++.net or vb.net. But someone may develop a language that uses .net components, without support for unsigned integers. For such senarios stands the CLS.
|
|
|
|
|
How can i create a single instance while deploying an software?
hghghgh
|
|
|
|
|
|
i made three forms.
one is mdiContainer and other two are its child ... One COntain toolBox,Other(editable) can contain many things.
e.g ellipse,rectangle,line,image, text or etc...
i want that when user draw all the things on editable form he can save all it, in that position,in that size or in that color...
and he can also open these thing........
hghghgh
|
|
|
|
|
|
hi
how can i catch an exception that is thrown in business_logic layer
i have tried application.exception but it will catch (form1.cs defined members)
but i want to catch exceptions on separate dll ?
|
|
|
|