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

Re: How to keep memory usage and CPU as low as possible? by Alvin

Alvin
Tue Sep 06 07:28:16 CDT 2005

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" <pietercoucke@hotmail.com> wrote in message
news:O$XmLbtsFHA.3080@TK2MSFTNGP15.phx.gbl...
> 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
>
>



Re: How to keep memory usage and CPU as low as possible? by Cor

Cor
Tue Sep 06 08:30:55 CDT 2005

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



Re: How to keep memory usage and CPU as low as possible? by DraguVaso

DraguVaso
Tue Sep 06 08:48:45 CDT 2005

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
news:%23gJa25tsFHA.2748@TK2MSFTNGP14.phx.gbl...
> 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" <pietercoucke@hotmail.com> wrote in message
> news:O$XmLbtsFHA.3080@TK2MSFTNGP15.phx.gbl...
> > 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
> >
> >
>
>



Re: How to keep memory usage and CPU as low as possible? by Brian

Brian
Tue Sep 06 09:56:31 CDT 2005

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


"DraguVaso" <pietercoucke@hotmail.com> wrote in message
news:O$XmLbtsFHA.3080@TK2MSFTNGP15.phx.gbl...
> 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
>
>



Re: How to keep memory usage and CPU as low as possible? by Alvin

Alvin
Tue Sep 06 12:17:26 CDT 2005

> 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" <pietercoucke@hotmail.com> wrote in message
news:OchU1musFHA.2076@TK2MSFTNGP14.phx.gbl...
> 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
> news:%23gJa25tsFHA.2748@TK2MSFTNGP14.phx.gbl...
> > 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" <pietercoucke@hotmail.com> wrote in message
> > news:O$XmLbtsFHA.3080@TK2MSFTNGP15.phx.gbl...
> > > 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
> > >
> > >
> >
> >
>
>



Re: How to keep memory usage and CPU as low as possible? by DraguVaso

DraguVaso
Wed Sep 07 03:10:03 CDT 2005

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" <www.lulu.com/owc> wrote in message
news:ecLkbbwsFHA.2968@TK2MSFTNGP10.phx.gbl...
> > 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" <pietercoucke@hotmail.com> wrote in message
> news:OchU1musFHA.2076@TK2MSFTNGP14.phx.gbl...
> > 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
> > news:%23gJa25tsFHA.2748@TK2MSFTNGP14.phx.gbl...
> > > 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" <pietercoucke@hotmail.com> wrote in message
> > > news:O$XmLbtsFHA.3080@TK2MSFTNGP15.phx.gbl...
> > > > 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
> > > >
> > > >
> > >
> > >
> >
> >
>
>



Re: How to keep memory usage and CPU as low as possible? by DraguVaso

DraguVaso
Wed Sep 07 03:18:50 CDT 2005

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

"Brian Henry" <nospam@nospam.com> wrote in message
news:u6GIsMvsFHA.1032@TK2MSFTNGP12.phx.gbl...
> 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
>
>
> "DraguVaso" <pietercoucke@hotmail.com> wrote in message
> news:O$XmLbtsFHA.3080@TK2MSFTNGP15.phx.gbl...
> > 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
> >
> >
>
>



Re: How to keep memory usage and CPU as low as possible? by Helge

Helge
Wed Sep 07 03:43:59 CDT 2005


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

DraguVaso wrote:

> - 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
http://www.catb.org/~esr/faqs/smart-questions.html

--
Helge Jensen
mailto:helge.jensen@slog.dk
sip:helge.jensen@slog.dk
-=> Sebastian cover-music: http://ungdomshus.nu <=-

Re: How to keep memory usage and CPU as low as possible? by Cor

Cor
Wed Sep 07 07:05:00 CDT 2005

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



Re: How to keep memory usage and CPU as low as possible? by Slow

Slow
Wed Sep 07 10:06:56 CDT 2005

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.

"Cor Ligthert [MVP]" <notmyfirstname@planet.nl> wrote in message
news:OSzMKS6sFHA.2880@TK2MSFTNGP12.phx.gbl...
> 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
>



Re: How to keep memory usage and CPU as low as possible? by DraguVaso

DraguVaso
Thu Sep 08 02:05:44 CDT 2005

ok, thanks for the link

"Helge Jensen" <helge.jensen@slog.dk> wrote in message
news:eVCpMh4sFHA.524@TK2MSFTNGP12.phx.gbl...
>
> /me takes out his bag of troll-food, and his mega-crosspost hammer :)
>
> DraguVaso wrote:
>
> > - 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
> http://www.catb.org/~esr/faqs/smart-questions.html
>
> --
> Helge Jensen
> mailto:helge.jensen@slog.dk
> sip:helge.jensen@slog.dk
> -=> Sebastian cover-music: http://ungdomshus.nu <=-



Re: How to keep memory usage and CPU as low as possible? by Terry

Terry
Thu Sep 08 14:53:35 CDT 2005

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


DraguVaso wrote:
> 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" <www.lulu.com/owc> wrote in message
> news:ecLkbbwsFHA.2968@TK2MSFTNGP10.phx.gbl...
>
>>>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" <pietercoucke@hotmail.com> wrote in message
>>news:OchU1musFHA.2076@TK2MSFTNGP14.phx.gbl...
>>
>>>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
>>>news:%23gJa25tsFHA.2748@TK2MSFTNGP14.phx.gbl...
>>>
>>>>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" <pietercoucke@hotmail.com> wrote in message
>>>>news:O$XmLbtsFHA.3080@TK2MSFTNGP15.phx.gbl...
>>>>
>>>>>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
>>>>>
>>>>>
>>>>
>>>>
>>>
>>
>
>