Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old December 14th, 2005, 04:25 PM
poop
Guest
 
Posts: n/a
Default 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


  #2  
Old December 14th, 2005, 04:35 PM
Patrice
Guest
 
Posts: n/a
Default Re: Code Optimisation

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" <poop@poop.com> a écrit dans le message de
news:u8pu1kMAGHA.3864@TK2MSFTNGP12.phx.gbl...[color=blue]
> 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
>
>[/color]


  #3  
Old December 15th, 2005, 11:45 PM
poop
Guest
 
Posts: n/a
Default Re: Code Optimisation

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" <nobody@nowhere.com> wrote in message
news:e9HzAqMAGHA.3584@TK2MSFTNGP14.phx.gbl...[color=blue]
> 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" <poop@poop.com> a écrit dans le message de
> news:u8pu1kMAGHA.3864@TK2MSFTNGP12.phx.gbl...[color=green]
>> 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
>>
>>[/color]
>
>[/color]


  #4  
Old December 16th, 2005, 12:26 AM
Bob Lehmann
Guest
 
Posts: n/a
Default Re: Code Optimisation

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" <poop@poop.com> wrote in message
news:eWDaf7cAGHA.2704@TK2MSFTNGP15.phx.gbl...[color=blue]
> 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[/color]
thousand[color=blue]
> cards. This cycle is causing the server to time out on this page.
>
> I need to make tihs process quicker.
>
> "Patrice" <nobody@nowhere.com> wrote in message
> news:e9HzAqMAGHA.3584@TK2MSFTNGP14.phx.gbl...[color=green]
> > Not really "doing" but rather "suggesting how YOU could optimize".
> >
> > My first suggestion would be to actually measure where your time budget[/color][/color]
is[color=blue][color=green]
> > spent so that you can invest your time on optimizing the relevant parts
> > and
> > have a measurable feed back on your changes...
> >
> > --
> > Patrice
> >
> > "poop" <poop@poop.com> a écrit dans le message de
> > news:u8pu1kMAGHA.3864@TK2MSFTNGP12.phx.gbl...[color=darkred]
> >> 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
> >>
> >>[/color]
> >
> >[/color]
>
>[/color]


  #5  
Old December 16th, 2005, 08:45 AM
Patrice
Guest
 
Posts: n/a
Default Re: Code Optimisation

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" <poop@poop.com> a écrit dans le message de
news:eWDaf7cAGHA.2704@TK2MSFTNGP15.phx.gbl...[color=blue]
> 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[/color]
thousand[color=blue]
> cards. This cycle is causing the server to time out on this page.
>
> I need to make tihs process quicker.
>
> "Patrice" <nobody@nowhere.com> wrote in message
> news:e9HzAqMAGHA.3584@TK2MSFTNGP14.phx.gbl...[color=green]
> > Not really "doing" but rather "suggesting how YOU could optimize".
> >
> > My first suggestion would be to actually measure where your time budget[/color][/color]
is[color=blue][color=green]
> > spent so that you can invest your time on optimizing the relevant parts
> > and
> > have a measurable feed back on your changes...
> >
> > --
> > Patrice
> >
> > "poop" <poop@poop.com> a écrit dans le message de
> > news:u8pu1kMAGHA.3864@TK2MSFTNGP12.phx.gbl...[color=darkred]
> >> 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
> >>
> >>[/color]
> >
> >[/color]
>
>[/color]


  #6  
Old December 16th, 2005, 12:05 PM
Bob Barrows [MVP]
Guest
 
Posts: n/a
Default Re: Code Optimisation

Patrice wrote:[color=blue]
>
> 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...).
>[/color]
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"


 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles