| View previous topic :: View next topic |
| Author |
Message |
Darryl Strickland Guest
|
Posted: Tue Aug 01, 2006 5:39 am Post subject: Indy 10 and Encoding Email Attachments are very slow |
|
|
How come encoding email attachments are so SLOW. I can send the same emails
with Outlook or Outlook Express and it's instantaneous. Are there is any
thing I can do to speed this process up. My users think that the
application has hung while it's encoding.
Thanks
Darryl |
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Tue Aug 01, 2006 6:31 am Post subject: Re: Indy 10 and Encoding Email Attachments are very slow |
|
|
"Darryl Strickland" <dstrickland (AT) carolina (DOT) rr.com> wrote in message
news:44cea252 (AT) newsgroups (DOT) borland.com...
| Quote: | How come encoding email attachments are so SLOW. I can send the
same emails with Outlook or Outlook Express and it's instantaneous.
Are there is any thing I can do to speed this process up. My users think
that the application has hung while it's encoding.
|
As far as I know, Outlook(Express) encodes the message at the time the user
clicks on the "Send" button and then caches the result, so that it can be
tranmitted as-is when the socket is established. Sending pre-formatted data
is very quick, since there is no processing involved to slow the
communication down. Indy, on the other hand, encodes the message data
on-the-fly as it is being sent to the socket. The communication may be a
little slower, but it takes up much less resources.
Gambit |
|
| Back to top |
|
 |
Darryl Strickland Guest
|
Posted: Tue Aug 01, 2006 7:30 am Post subject: Re: Indy 10 and Encoding Email Attachments are very slow |
|
|
So is there anything I can do to speed this up?
Thanks
Darryl
Remy Lebeau (TeamB) wrote:
| Quote: | "Darryl Strickland" <dstrickland (AT) carolina (DOT) rr.com> wrote in message
news:44cea252 (AT) newsgroups (DOT) borland.com...
How come encoding email attachments are so SLOW. I can send the
same emails with Outlook or Outlook Express and it's instantaneous.
Are there is any thing I can do to speed this process up. My users
think that the application has hung while it's encoding.
As far as I know, Outlook(Express) encodes the message at the time
the user clicks on the "Send" button and then caches the result, so
that it can be tranmitted as-is when the socket is established.
Sending pre-formatted data is very quick, since there is no
processing involved to slow the communication down. Indy, on the
other hand, encodes the message data on-the-fly as it is being sent
to the socket. The communication may be a little slower, but it
takes up much less resources.
Gambit |
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Tue Aug 01, 2006 8:11 am Post subject: Re: Indy 10 and Encoding Email Attachments are very slow |
|
|
"Darryl Strickland" <dstrickland (AT) carolina (DOT) rr.com> wrote in message
news:44cebc63 (AT) newsgroups (DOT) borland.com...
| Quote: | So is there anything I can do to speed this up?
|
What exactly do you think is taking a long time to execute? Please be more
specific.
Gambit |
|
| Back to top |
|
 |
Darryl Strickland Guest
|
Posted: Wed Aug 02, 2006 1:36 am Post subject: Re: Indy 10 and Encoding Email Attachments are very slow |
|
|
It's the encoding of the email attachments. It slow on my dual xeon
development pc and on all my clients computers to the point that they think
the computer is locked up while encoding the attachment.
Thanks
Darryl
Remy Lebeau (TeamB) wrote:
| Quote: | "Darryl Strickland" <dstrickland (AT) carolina (DOT) rr.com> wrote in message
news:44cebc63 (AT) newsgroups (DOT) borland.com...
So is there anything I can do to speed this up?
What exactly do you think is taking a long time to execute? Please
be more specific.
Gambit |
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Wed Aug 02, 2006 2:38 am Post subject: Re: Indy 10 and Encoding Email Attachments are very slow |
|
|
"Darryl Strickland" <dstrickland (AT) carolina (DOT) rr.com> wrote in message
news:44cfbaf4$1 (AT) newsgroups (DOT) borland.com...
| Quote: | It's the encoding of the email attachments. It slow on my dual xeon
development pc and on all my clients computers to the point that
they think the computer is locked up while encoding the attachment.
|
How big are your attachments to begin with? For that matter, the fact that
you are using a dual-CPU machine means nothing, since Indy does all of its
encoding in the same thread that is sending the message. Is your
application multi-threaded at all? Or are you sending the message in the
context of the main thread? Obviously, if you are having problems with the
UI freezing up during a send, then you should not be sending from the main
thread in the first place.
Gambit |
|
| Back to top |
|
 |
|