Let's say I have a project with 5 classes. If I make a DLL out of each of those classes and replace the classes with the DLL versions, would it be any slower?
in another words is there any difference in speed when using a dll file or a .vb file?
Printable View
Let's say I have a project with 5 classes. If I make a DLL out of each of those classes and replace the classes with the DLL versions, would it be any slower?
in another words is there any difference in speed when using a dll file or a .vb file?
No Difference.
THe only thing you can do different is that you can code all the DLLS in other .NET languages so you can use a C# DLL in a vb.net project. You cant use a C sharp class csharp.cs in a vb project.
:)
another thing:
let's say I have 2 classes with the exact same functionality, one written in C# one in VB.NET. And let's assume they have the same performance
if I create a DLL of the C# class, would the vb.net class be any faster than the C# dll when using in a vb.net project?
They are the same.
All .NET languages are of the same level of citizenship in .NET Platform country.
They ALL compiled to Microsoft Intermediate Language (MSIL) which is then JIT Compiled to native machine code to be executed.
Just to add, no there would be no difference. (unless one is optimized better in code, but you said equal)
tnx everyone:) just one more question:D
if I have like 50 dlls (I dont!), would it take longer just to load those dlls when the program starts?
Unlike VB6 I think .NET doesn't load the whole dll in and only loads the parts it needs when it does. Although I'm not sure on that.
Edneeis is right.
There is no difference.
thank you :)!!!
oh really nice...was looking for info about ths..but...loading a dll shouldn't slow up everything?
ahem ahem, they said "no" :)Quote:
Originally posted by PT Exorcist
oh really nice...was looking for info about ths..but...loading a dll shouldn't slow up everything?
yea i know but i think it's strange...lol