472,330 Members | 1,249 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,330 software developers and data experts.

Inline functions

kd
Hi All,

Does vb.net support inline functions?

kd.
Nov 21 '05 #1
11 6616
KD,

Does vb.net support inline functions?


Can you explain why you ask this in the context of the language.vb?

Cor
Nov 21 '05 #2
kd
Cor,

I have a procedure which has few lines of code that I need to execute very
frequently in the project. If the procedure were to be 'Inline', the
overheads of a function call can be eliminated.

If there is something like an 'Inline' function available in vb.net, I could
use that feature.

Thanks.
kd

"Cor Ligthert" wrote:
KD,

Does vb.net support inline functions?


Can you explain why you ask this in the context of the language.vb?

Cor

Nov 21 '05 #3
KD,

In my opinion do we not live anymore in the century from the invention of
the Unix computer.

You can be sure that using ILS language the processing is not direct, as it
is with almost every computersystem invented after 1960. (Not about
processors for coocking machines and things like that).

How many cycles of the processor you need to win?

You know that a computer needed for Net has at least something as 90Mhz.

What means 90 million cycles per second.

Cor

Nov 21 '05 #4
kd
Cor,

I have a procedure which has few lines of code that I need to execute very
frequently in the project. If the procedure were to be 'Inline', the
overheads of a function call can be eliminated.

If there is something like an 'Inline' function available in vb.net, I could
use that feature.

Thanks.
kd

"Cor Ligthert" wrote:
KD,

Does vb.net support inline functions?


Can you explain why you ask this in the context of the language.vb?

Cor

Nov 21 '05 #5
KD,

In my opinion do we not live anymore in the century from the invention of
the Unix computer.

You can be sure that using ILS language the processing is not direct, as it
is with almost every computersystem invented after 1960. (Not about
processors for coocking machines and things like that).

How many cycles of the processor you need to win?

You know that a computer needed for Net has at least something as 90Mhz.

What means 90 million cycles per second.

Cor

Nov 21 '05 #6
"kd" <kd@discussions.microsoft.com> schrieb:
Does vb.net support inline functions?


Some of the VB functions are inlined by the compiler. The JITter will
inline small functions automatically. However, you don't have control over
this process, which gives the JITter more flexibility to optimize your code.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #7
"kd" <kd@discussions.microsoft.com> wrote in message
news:36**********************************@microsof t.com...
Hi All,

Does vb.net support inline functions?

kd.


I've never seen any reference to it.

However, I think that the compiler makes the call whether to inline the
function and its not something you have explicit control over. This is based
on what little information I could find on the net.

Hope this helps,

Brian

www.cryer.co.uk/brian
Nov 21 '05 #8
"kd" <kd@discussions.microsoft.com> schrieb:
Does vb.net support inline functions?


Some of the VB functions are inlined by the compiler. The JITter will
inline small functions automatically. However, you don't have control over
this process, which gives the JITter more flexibility to optimize your code.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #9
"kd" <kd@discussions.microsoft.com> wrote in message
news:36**********************************@microsof t.com...
Hi All,

Does vb.net support inline functions?

kd.


I've never seen any reference to it.

However, I think that the compiler makes the call whether to inline the
function and its not something you have explicit control over. This is based
on what little information I could find on the net.

Hope this helps,

Brian

www.cryer.co.uk/brian
Nov 21 '05 #10
kd,

The JIT compiler will automatically inline small methods. I believe
the threshold is 32 bytes. Simple properties are ideal candidates.
One advantage of letting the JIT compiler do this automatically is that
it can inline methods across assembly boundaries.

Brian

kd wrote:
Cor,

I have a procedure which has few lines of code that I need to execute
very frequently in the project. If the procedure were to be 'Inline',
the overheads of a function call can be eliminated.

If there is something like an 'Inline' function available in vb.net,
I could use that feature.

Thanks.
kd


Nov 21 '05 #11
kd,

The JIT compiler will automatically inline small methods. I believe
the threshold is 32 bytes. Simple properties are ideal candidates.
One advantage of letting the JIT compiler do this automatically is that
it can inline methods across assembly boundaries.

Brian

kd wrote:
Cor,

I have a procedure which has few lines of code that I need to execute
very frequently in the project. If the procedure were to be 'Inline',
the overheads of a function call can be eliminated.

If there is something like an 'Inline' function available in vb.net,
I could use that feature.

Thanks.
kd


Nov 21 '05 #12

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: A | last post by:
Hi, I'm having problems completing a project in C++. I have been using inline functions in some of my header files. I have only done so for...
14
by: Chris Mantoulidis | last post by:
I am not clear with the use of the keyword inline... I believe you add it do a function when you implement the function inside the header file...
47
by: Richard Hayden | last post by:
Hi, I have the following code: /******************************** file1.c #include <iostream> extern void dummy(); inline int testfunc() {
7
by: Srini | last post by:
Hello, Rules for inline functions say that they have to be defined in the same compilation unit as their declarations. For class member functions...
4
by: Tony Johansson | last post by:
Hello experts! I'm reading a book about C++ and there is something about inline that the book says that is unclear for me. The book says the...
7
by: Alvin | last post by:
Hello all, I'm curious as to your opinions on explicitly inlining function? I'm talking about functions as members of a class. For example, so...
43
by: Patrick Laurent | last post by:
Hello I have a program with many many inlined template functions It is essential for the execution speed that every (or almost every) function...
18
by: Method Man | last post by:
If I don't care about the size of my executable or compile time, is there any reason why I wouldn't want to inline every function in my code to make...
12
by: sam_cit | last post by:
Hi Everyone, I have few questions on inline functions, when i declare a function as inline, is it for sure that the compiler would replace the...
2
by: aaragon | last post by:
Hi everyone, I would like to create a very simple function: // header file inline void point_map() { PointMap pointMap =...
0
by: tammygombez | last post by:
Hey everyone! I've been researching gaming laptops lately, and I must say, they can get pretty expensive. However, I've come across some great...
0
by: concettolabs | last post by:
In today's business world, businesses are increasingly turning to PowerApps to develop custom business applications. PowerApps is a powerful tool...
0
by: teenabhardwaj | last post by:
How would one discover a valid source for learning news, comfort, and help for engineering designs? Covering through piles of books takes a lot of...
0
by: CD Tom | last post by:
This only shows up in access runtime. When a user select a report from my report menu when they close the report they get a menu I've called Add-ins...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.