473,378 Members | 1,377 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Performance Issues

Hi,

I have written a sperate appliaction for error logging and now I have two
options

one is to create a dll and give it to fellow developer and allow them to add
the reference while keeping the dll in the working folder

or

give them the cs file so then they can add (the code itself) it to their
solution and use it

Let me have some explaination (strick) on performance gain or loose of each
of these method.

Nirosh.
Nov 15 '05 #1
3 1814
Having a separate dll when you can have the code itself is not a good
option. Many reasons: different versions then have to be strictly
maintained.. if the version of the client changes, JIT will not be able
to do many optimizations it does with code that have the same versions
(for example inlining methods).. furthermore, there are many other JIT
optimizations that can be easily performed if code is in the same file
because then the JIT compiler is at liberty to move around data and
instructions to get the best out of it while with separate dlls, it
won't be able to do so... (as many other applications can be using that
dll at the same time and changing or moving data around in that dll
would be a no-no). Again, the point is that if you *can* have the code
in one file and you don't need to share that code with many
applications, then you should definitely go for the other option (of
including the code).. but if you have other plans then go for the dll :)

-Andre

Champika Nirosh wrote:
Hi,

I have written a sperate appliaction for error logging and now I have two
options

one is to create a dll and give it to fellow developer and allow them to add
the reference while keeping the dll in the working folder

or

give them the cs file so then they can add (the code itself) it to their
solution and use it

Let me have some explaination (strick) on performance gain or loose of each
of these method.

Nirosh.


Nov 15 '05 #2
Yes Andre I am of course 100% agree with you, not one of my fellow developer
though and I just wanted some calrification I mean some tech. points

furthermore, there are many other JIT optimizations that can be easily
performed if code is in the same file because then the JIT compiler is at
liberty to move around data and instructions to get the best out of it while
with separate dlls, it won't be able to do so...

Could you please get me some more data on what you have said above.. that is
the point I need to know what are these optimization ...??

could you pls get me a link to get more data (if possible)

Thanks for the info you have given so far

Nirosh

"Andre" <fo********@hotmail.com> wrote in message
news:3F**************@hotmail.com...
Having a separate dll when you can have the code itself is not a good
option. Many reasons: different versions then have to be strictly
maintained.. if the version of the client changes, JIT will not be able
to do many optimizations it does with code that have the same versions
(for example inlining methods).. furthermore, there are many other JIT
optimizations that can be easily performed if code is in the same file
because then the JIT compiler is at liberty to move around data and
instructions to get the best out of it while with separate dlls, it
won't be able to do so... (as many other applications can be using that
dll at the same time and changing or moving data around in that dll
would be a no-no). Again, the point is that if you *can* have the code
in one file and you don't need to share that code with many
applications, then you should definitely go for the other option (of
including the code).. but if you have other plans then go for the dll :)

-Andre

Champika Nirosh wrote:
Hi,

I have written a sperate appliaction for error logging and now I have two options

one is to create a dll and give it to fellow developer and allow them to add the reference while keeping the dll in the working folder

or

give them the cs file so then they can add (the code itself) it to their
solution and use it

Let me have some explaination (strick) on performance gain or loose of each of these method.

Nirosh.

Nov 15 '05 #3
What u have said is also enough
Thanks
Nirosh.

"Andre" <fo********@hotmail.com> wrote in message
news:3F**************@hotmail.com...
Actually I don't rememebr the list of things the JIT does but you can
find this on MSDN (there are actually a couple of articles online that
give you a 'short' list of things the JIT compiler does). I'm sorry I
can't be of much more help :(

-Andre

Champika Nirosh wrote:
Yes Andre I am of course 100% agree with you, not one of my fellow developer though and I just wanted some calrification I mean some tech. points

furthermore, there are many other JIT optimizations that can be easily
performed if code is in the same file because then the JIT compiler is at liberty to move around data and instructions to get the best out of it while with separate dlls, it won't be able to do so...

Could you please get me some more data on what you have said above.. that is the point I need to know what are these optimization ...??

could you pls get me a link to get more data (if possible)

Thanks for the info you have given so far

Nirosh

"Andre" <fo********@hotmail.com> wrote in message
news:3F**************@hotmail.com...
Having a separate dll when you can have the code itself is not a good
option. Many reasons: different versions then have to be strictly
maintained.. if the version of the client changes, JIT will not be able
to do many optimizations it does with code that have the same versions
(for example inlining methods).. furthermore, there are many other JIT
optimizations that can be easily performed if code is in the same file
because then the JIT compiler is at liberty to move around data and
instructions to get the best out of it while with separate dlls, it
won't be able to do so... (as many other applications can be using that
dll at the same time and changing or moving data around in that dll
would be a no-no). Again, the point is that if you *can* have the code
in one file and you don't need to share that code with many
applications, then you should definitely go for the other option (of
including the code).. but if you have other plans then go for the dll :)

-Andre

Champika Nirosh wrote:

Hi,

I have written a sperate appliaction for error logging and now I have

two
options

one is to create a dll and give it to fellow developer and allow them to

add
the reference while keeping the dll in the working folder

or

give them the cs file so then they can add (the code itself) it to theirsolution and use it

Let me have some explaination (strick) on performance gain or loose of

each
of these method.

Nirosh.


Nov 15 '05 #4

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

Similar topics

25
by: Brian Patterson | last post by:
I have noticed in the book of words that hasattr works by calling getattr and raising an exception if no such attribute exists. If I need the value in any case, am I better off using getattr...
5
by: sandy | last post by:
Hi All, I am a newbie to MySQL and Python. At the first place, I would like to know what are the general performance issues (if any) of using MySQL with Python. By performance, I wanted to...
2
by: Unruled Boy | last post by:
1.The follow two ways to declare one object: any difference? especially its performance. a.Private m_objMyObject As MyObject=New MyObject() b.Private m_objMyObject As MyObject m_objMyObject=New...
115
by: Mark Shelor | last post by:
I've encountered a troublesome inconsistency in the C-language Perl extension I've written for CPAN (Digest::SHA). The problem involves the use of a static array within a performance-critical...
2
by: Unruled Boy | last post by:
1.The follow two ways to declare one object: any difference? especially its performance. a.Private m_objMyObject As MyObject=New MyObject() b.Private m_objMyObject As MyObject m_objMyObject=New...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.