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

Code Optimisation

It was recommended that i visit here, to get my code optimised.

Are people here willing to do an optimisation?

Ill post code if anyone is up for it!!

Thanks in advance
Dec 14 '05 #1
5 1383
Not really "doing" but rather "suggesting how YOU could optimize".

My first suggestion would be to actually measure where your time budget is
spent so that you can invest your time on optimizing the relevant parts and
have a measurable feed back on your changes...

--
Patrice

"poop" <po**@poop.com> a écrit dans le message de
news:u8**************@TK2MSFTNGP12.phx.gbl...
It was recommended that i visit here, to get my code optimised.

Are people here willing to do an optimisation?

Ill post code if anyone is up for it!!

Thanks in advance

Dec 14 '05 #2
Im pulling records from a database 1 at a time and then creating an email,
which is sent via a persits email module on the server.

The problem is that some accounts require the page to send several thousand
cards. This cycle is causing the server to time out on this page.

I need to make tihs process quicker.

"Patrice" <no****@nowhere.com> wrote in message
news:e9**************@TK2MSFTNGP14.phx.gbl...
Not really "doing" but rather "suggesting how YOU could optimize".

My first suggestion would be to actually measure where your time budget is
spent so that you can invest your time on optimizing the relevant parts
and
have a measurable feed back on your changes...

--
Patrice

"poop" <po**@poop.com> a écrit dans le message de
news:u8**************@TK2MSFTNGP12.phx.gbl...
It was recommended that i visit here, to get my code optimised.

Are people here willing to do an optimisation?

Ill post code if anyone is up for it!!

Thanks in advance


Dec 15 '05 #3
Quit sending them one at a time. Add the other recipients to the CC or BCC.

Or, better still, use a real list server.

BTW - The way you're doing it, the bottleneck is probably not ASP or the
component. It's more likely the mail server.

Bob Lehmann

"poop" <po**@poop.com> wrote in message
news:eW**************@TK2MSFTNGP15.phx.gbl...
Im pulling records from a database 1 at a time and then creating an email,
which is sent via a persits email module on the server.

The problem is that some accounts require the page to send several thousand cards. This cycle is causing the server to time out on this page.

I need to make tihs process quicker.

"Patrice" <no****@nowhere.com> wrote in message
news:e9**************@TK2MSFTNGP14.phx.gbl...
Not really "doing" but rather "suggesting how YOU could optimize".

My first suggestion would be to actually measure where your time budget is spent so that you can invest your time on optimizing the relevant parts
and
have a measurable feed back on your changes...

--
Patrice

"poop" <po**@poop.com> a écrit dans le message de
news:u8**************@TK2MSFTNGP12.phx.gbl...
It was recommended that i visit here, to get my code optimised.

Are people here willing to do an optimisation?

Ill post code if anyone is up for it!!

Thanks in advance



Dec 16 '05 #4
Though you could alter this setting it's likely better :
- as suggested in another thread optimize the process itself (by using
CC/BCC)
- another thing to try would be to use the filesystem rather than passing by
COM (for example some components are able to process files that are put in
their "pickup" directory, it could be quicker)

Finally, for these kind of things, it's likely better to process this
asynchronously i.e. the ASP page just queues the tasks to be done and
another process processes theses tasks (could be as scheduled application, a
SQL job etc...).

--
Patrice

"poop" <po**@poop.com> a écrit dans le message de
news:eW**************@TK2MSFTNGP15.phx.gbl...
Im pulling records from a database 1 at a time and then creating an email,
which is sent via a persits email module on the server.

The problem is that some accounts require the page to send several thousand cards. This cycle is causing the server to time out on this page.

I need to make tihs process quicker.

"Patrice" <no****@nowhere.com> wrote in message
news:e9**************@TK2MSFTNGP14.phx.gbl...
Not really "doing" but rather "suggesting how YOU could optimize".

My first suggestion would be to actually measure where your time budget is spent so that you can invest your time on optimizing the relevant parts
and
have a measurable feed back on your changes...

--
Patrice

"poop" <po**@poop.com> a écrit dans le message de
news:u8**************@TK2MSFTNGP12.phx.gbl...
It was recommended that i visit here, to get my code optimised.

Are people here willing to do an optimisation?

Ill post code if anyone is up for it!!

Thanks in advance



Dec 16 '05 #5
Patrice wrote:

Finally, for these kind of things, it's likely better to process this
asynchronously i.e. the ASP page just queues the tasks to be done and
another process processes theses tasks (could be as scheduled
application, a SQL job etc...).

http://www.aspfaq.com/show.asp?id=2143
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Dec 16 '05 #6

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

Similar topics

2
by: Simon Elliott | last post by:
What optimisation do compilers typically provide when passing STL containers around? For example, if I do something like this: struct Tbloggs { std::string s1; }; typedef...
15
by: christopher diggins | last post by:
Here is some code I wrote for Matrix multiplication for arbitrary dimensionality known at compile-time. I am curious how practical it is. For instance, is it common to know the dimensionality of...
16
by: simonwittber | last post by:
Hello People. I've have a very tight inner loop (in a game app, so every millisecond counts) which I have optimised below: def loop(self): self_pool = self.pool self_call_exit_funcs =...
24
by: Kunal | last post by:
Hello, I need help in removing if ..else conditions inside for loops. I have used the following method but I am not sure whether it has actually helped. Below is an example to illustrate what I...
239
by: Eigenvector | last post by:
My question is more generic, but it involves what I consider ANSI standard C and portability. I happen to be a system admin for multiple platforms and as such a lot of the applications that my...
1
by: grid | last post by:
Hi, I was exploring the affect of cache on program performance/optimisation.Is it the compilers responsibility only to consider this kind of optimisation or the programmer can do his bit in this...
6
by: Dennis Yurichev | last post by:
Hi. How can I find some ready tool or how can I find a proper way to develope tool which will convert such code: if (a>b+2+2) { f1(); f2(a*3*2); } else {
14
by: Stapes | last post by:
Hi I have this entry in my stylesheet main1.css: #head { width: 310px; height: 60px; float: left; display: block; background-image: url(logo.jpg); background-position: left top;
2
by: =?Utf-8?B?cmljaGFyZCBzYW5jZW5vdA==?= | last post by:
When calling the DrawSomething function, i get an access violation in release mode. This error happens when "Increase speed (/02)" is enabled (Preferences->C/C++ -Optimisation -Increase speed...
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
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.