473,385 Members | 1,341 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,385 software developers and data experts.

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

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
Sep 6 '05 #1
12 1680
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" <pi**********@hotmail.com> wrote in message
news:O$**************@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

Sep 6 '05 #2
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
Sep 6 '05 #3
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:%2****************@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" <pi**********@hotmail.com> wrote in message
news:O$**************@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


Sep 6 '05 #4
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" <pi**********@hotmail.com> wrote in message
news:O$**************@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

Sep 6 '05 #5
> 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" <pi**********@hotmail.com> wrote in message
news:Oc**************@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:%2****************@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" <pi**********@hotmail.com> wrote in message
news:O$**************@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



Sep 6 '05 #6
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:ec**************@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" <pi**********@hotmail.com> wrote in message
news:Oc**************@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:%2****************@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" <pi**********@hotmail.com> wrote in message
news:O$**************@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
>
>



Sep 7 '05 #7
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" <no****@nospam.com> wrote in message
news:u6**************@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" <pi**********@hotmail.com> wrote in message
news:O$**************@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


Sep 7 '05 #8

/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:he**********@slog.dk
sip:he**********@slog.dk
-=> Sebastian cover-music: http://ungdomshus.nu <=-
Sep 7 '05 #9
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
Sep 7 '05 #10
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]" <no************@planet.nl> wrote in message
news:OS**************@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

Sep 7 '05 #11
ok, thanks for the link

"Helge Jensen" <he**********@slog.dk> wrote in message
news:eV*************@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:he**********@slog.dk
sip:he**********@slog.dk
-=> Sebastian cover-music: http://ungdomshus.nu <=-

Sep 8 '05 #12
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:ec**************@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" <pi**********@hotmail.com> wrote in message
news:Oc**************@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:%2****************@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" <pi**********@hotmail.com> wrote in message
news:O$**************@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
>
>


Sep 8 '05 #13

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

Similar topics

7
by: Clement | last post by:
hi, i have an asp.net site and is using SQL Server 2k. i realize the aspnet_wp.exe memory usage keep growing and i will receive an error for the pages that call the sql connection. others page...
12
by: DraguVaso | last post by:
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
12
by: DraguVaso | last post by:
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
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
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: 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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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?

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.