How to keep memory usage and CPU as low as possible?

D

DraguVaso

Hi,

How can I keep the memory usage and CPU usageas low as possible in a VB.NET
application? any special techniques, any things to consider?

Thanks a lot in advance,

Pieter
 
A

Alvin Bruney - ASP.NET MVP

why is the posted to every newsgroup you can find?
--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ www.lulu.com/owc
Forth-coming VSTO.NET - Wrox/Wiley 2006
 
C

Cor Ligthert [MVP]

Pieter,

This forever isnot nothing (it seems that this is very good US English for
what we write as "is iets") that mostly conflict with each other.

By instance very good OOP will decrease memory usage, however using OOP
increases processor usage.

Just my idea

Cor
 
D

DraguVaso

Do you mean that in your opinion I should post my question to every
newsgroup I can find?

Alvin Bruney - ASP.NET MVP said:
why is the posted to every newsgroup you can find?
--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ www.lulu.com/owc
Forth-coming VSTO.NET - Wrox/Wiley 2006
-------------------------------------------------------



DraguVaso said:
Hi,

How can I keep the memory usage and CPU usageas low as possible in a VB.NET
application? any special techniques, any things to consider?

Thanks a lot in advance,

Pieter
 
B

Brian Henry

research Big-O notation... if you can understand that concept then you can
understand why CPU usage jumps and execution time takes long as it does
 
A

Alvin Bruney - ASP.NET MVP

Do you mean that in your opinion I should post my question to every
newsgroup I can find?
Is that your interpretation of humor?

The simple reason is that when you cross post like that you clutter the
newsgroups and make it difficult for users, who genuinely want to find
information, from finding it since there will be a lot of *noise posts like
yours. At best, I can see that your question relates to the
microsoft.public.dotnet.framework.performance newsgroup. Many people in here
read several, several newsgroups and aside from this being unproductivity,
it is really a waste of time. For instance, I could have spent the time
actually answering your post instead of complaining about it.

--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ www.lulu.com/owc
Forth-coming VSTO.NET - Wrox/Wiley 2006
-------------------------------------------------------



DraguVaso said:
Do you mean that in your opinion I should post my question to every
newsgroup I can find?

Alvin Bruney - ASP.NET MVP said:
why is the posted to every newsgroup you can find?
--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ www.lulu.com/owc
Forth-coming VSTO.NET - Wrox/Wiley 2006
-------------------------------------------------------



DraguVaso said:
Hi,

How can I keep the memory usage and CPU usageas low as possible in a VB.NET
application? any special techniques, any things to consider?

Thanks a lot in advance,

Pieter
 
D

DraguVaso

Ok, this is a bit off-topic, but just a quick explanation.

I understand your point of view, but:
- Just posting to one newsgroup isn't always an option in my opinion. I post
a question to a newsgroup to reach people who might know the answer. When
posting to only framework.performance-group (which is a small end really
specific newsgroup and not read by a lot of people) I dramaticly reduce the
number of people that I can reach with my question.
- Instead: posting to newsgroups that are related to the subject will
increase the number of people I reacht that might knwo the answer. It's
about specific parts of the framework (dotnet.framework), of a Windows Forms
application (windowsforms), in VB.NET (languages.vb), but if somebody knows
the answer for C# or another language it might work for VB.NET too
(dotnet.general).
- I don't think that people who want to find an answer to their problem are
reading all the thousands of messages in newsgroup. I guess they can get a
better performance when using google to search in them.
- My apologize: but I didn't force you to complain, so it's only your
responsibility that you spend your time complaining insteadof answering.
actually, I really would have appreciated mutch more if you would have
answered. That's the purpose of newsgroups in my opinion.

Once againg: This is just my humble opinion, and I respect any other opinion
about this subject.

kind regards,

Pieter


Alvin Bruney - ASP.NET MVP said:
Do you mean that in your opinion I should post my question to every
newsgroup I can find?
Is that your interpretation of humor?

The simple reason is that when you cross post like that you clutter the
newsgroups and make it difficult for users, who genuinely want to find
information, from finding it since there will be a lot of *noise posts like
yours. At best, I can see that your question relates to the
microsoft.public.dotnet.framework.performance newsgroup. Many people in here
read several, several newsgroups and aside from this being unproductivity,
it is really a waste of time. For instance, I could have spent the time
actually answering your post instead of complaining about it.

--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ www.lulu.com/owc
Forth-coming VSTO.NET - Wrox/Wiley 2006
-------------------------------------------------------



DraguVaso said:
Do you mean that in your opinion I should post my question to every
newsgroup I can find?

Alvin Bruney - ASP.NET MVP said:
why is the posted to every newsgroup you can find?
--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ www.lulu.com/owc
Forth-coming VSTO.NET - Wrox/Wiley 2006
-------------------------------------------------------



Hi,

How can I keep the memory usage and CPU usageas low as possible in a
VB.NET
application? any special techniques, any things to consider?

Thanks a lot in advance,

Pieter
 
D

DraguVaso

Hm thanks.
I understand the principle, although linking it to a .NET-application.... I
should know where to start, hehe. Any more practical ideas?
 
H

Helge Jensen

/me takes out his bag of troll-food, and his mega-crosspost hammer :)
- Just posting to one newsgroup isn't always an option in my opinion. I post
a question to a newsgroup to reach people who might know the answer. When
posting to only framework.performance-group (which is a small end really
specific newsgroup and not read by a lot of people) I dramaticly reduce the
number of people that I can reach with my question.

How many answers have you got? do you really think the problem is
whether you are reaching enough people?

The question is very broad, but you choose to broadcast it to various
specific dotnet groups.
- Instead: posting to newsgroups that are related to the subject will
increase the number of people I reacht that might knwo the answer. It's
about specific parts of the framework (dotnet.framework), of a Windows Forms
application (windowsforms), in VB.NET (languages.vb), but if somebody knows
the answer for C# or another language it might work for VB.NET too
(dotnet.general).

However, the people who are able to answer your questions most likely
won't anser crossposts. That's just the way it is.
- I don't think that people who want to find an answer to their problem are
reading all the thousands of messages in newsgroup. I guess they can get a
better performance when using google to search in them.

Which will search all the newsgroups. I don't see how this makes it
important to crosspost.

If you wish to have maximum benefit from newsgroups, try and read
 
C

Cor Ligthert [MVP]

Alvin,

I like crosspost as in my opinion most of the people active in the dotnet
newsgroups. I learn than from answers in other newsgroups, while I don't
open them again and again in all newsgroups when it is multiposted

Of course it has to be a relevant crosspost.

Just my opinion.

Cor
 
S

Slow Learner

I kind of agree. Quite often I will post a question to dotnet.vb and dotnet
C#, rather than posting to dotnet framework - where the question might have
a solution in one or other syntax. Many people will read .vb or .c# but
less so will read both and I believe even less people read .framework than
either of the two former groups.

Another example of cross post would be to .vb and to .interop, where the
question may have been solved by someone else in .vb, but is actually more
suited to interop (Office Integration for instance).

Sometimes, it is difficult to correctly classify a question - I find that
experience will allow you to eventually make a good judgement as to where it
will be answered. So, over time, frequency of your cross posting goes down.
 
D

DraguVaso

ok, thanks for the link

Helge Jensen said:
/me takes out his bag of troll-food, and his mega-crosspost hammer :)


How many answers have you got? do you really think the problem is
whether you are reaching enough people?

The question is very broad, but you choose to broadcast it to various
specific dotnet groups.


However, the people who are able to answer your questions most likely
won't anser crossposts. That's just the way it is.


Which will search all the newsgroups. I don't see how this makes it
important to crosspost.

If you wish to have maximum benefit from newsgroups, try and read


--
Helge Jensen
mailto:[email protected]
sip:[email protected]
-=> Sebastian cover-music: http://ungdomshus.nu <=-
 
T

Terry

Don't worry about it. Some people are so touchy about cross-posting.
In my opinion, I thought it was perfectly acceptable. It was a general
question and you posted to relevant groups.

Some people read many groups yet a lot of people only read one group!
I'm sure there are lots of people who only read the .vb group. If you
didn't cross-post, those people wouldn't see it.

Cross-posting is not a sin; it's a feature. It has been there in Usenet
for as long as I've been using it (1989). I've crossposted before, and
I thought hard before I did, knowing someone would surely jump down my
throat about it and totally ignore my question.

I think your question is the real problem. It's way too vague to even
begin to answer. A more appropriate response would be:

What kind of application are you trying to optimize? Network? UI?
Does it involve interop? etc.

So, you may want to think about your question a bit to narrow the scope.

There's a lot of information at sites like http://www.codeproject.com as
well that you may find useful.

Terry

Ok, this is a bit off-topic, but just a quick explanation.

I understand your point of view, but:
- Just posting to one newsgroup isn't always an option in my opinion. I post
a question to a newsgroup to reach people who might know the answer. When
posting to only framework.performance-group (which is a small end really
specific newsgroup and not read by a lot of people) I dramaticly reduce the
number of people that I can reach with my question.
- Instead: posting to newsgroups that are related to the subject will
increase the number of people I reacht that might knwo the answer. It's
about specific parts of the framework (dotnet.framework), of a Windows Forms
application (windowsforms), in VB.NET (languages.vb), but if somebody knows
the answer for C# or another language it might work for VB.NET too
(dotnet.general).
- I don't think that people who want to find an answer to their problem are
reading all the thousands of messages in newsgroup. I guess they can get a
better performance when using google to search in them.
- My apologize: but I didn't force you to complain, so it's only your
responsibility that you spend your time complaining insteadof answering.
actually, I really would have appreciated mutch more if you would have
answered. That's the purpose of newsgroups in my opinion.

Once againg: This is just my humble opinion, and I respect any other opinion
about this subject.

kind regards,

Pieter


Do you mean that in your opinion I should post my question to every
newsgroup I can find?

Is that your interpretation of humor?

The simple reason is that when you cross post like that you clutter the
newsgroups and make it difficult for users, who genuinely want to find
information, from finding it since there will be a lot of *noise posts
like

yours. At best, I can see that your question relates to the
microsoft.public.dotnet.framework.performance newsgroup. Many people in
here

read several, several newsgroups and aside from this being unproductivity,
it is really a waste of time. For instance, I could have spent the time
actually answering your post instead of complaining about it.

--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ www.lulu.com/owc
Forth-coming VSTO.NET - Wrox/Wiley 2006
-------------------------------------------------------



Do you mean that in your opinion I should post my question to every
newsgroup I can find?

"Alvin Bruney - ASP.NET MVP" <www.lulu.com/owc> wrote in message

why is the posted to every newsgroup you can find?
--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ www.lulu.com/owc
Forth-coming VSTO.NET - Wrox/Wiley 2006
-------------------------------------------------------




Hi,

How can I keep the memory usage and CPU usageas low as possible in a

VB.NET

application? any special techniques, any things to consider?

Thanks a lot in advance,

Pieter
 

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

Top