BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Indy 10 and Encoding Email Attachments are very slow

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock
View previous topic :: View next topic  
Author Message
Darryl Strickland
Guest





PostPosted: Tue Aug 01, 2006 5:39 am    Post subject: Indy 10 and Encoding Email Attachments are very slow Reply with 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.

Thanks
Darryl
Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Tue Aug 01, 2006 6:31 am    Post subject: Re: Indy 10 and Encoding Email Attachments are very slow Reply with quote



"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





PostPosted: Tue Aug 01, 2006 7:30 am    Post subject: Re: Indy 10 and Encoding Email Attachments are very slow Reply with quote



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





PostPosted: Tue Aug 01, 2006 8:11 am    Post subject: Re: Indy 10 and Encoding Email Attachments are very slow Reply with quote

"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





PostPosted: Wed Aug 02, 2006 1:36 am    Post subject: Re: Indy 10 and Encoding Email Attachments are very slow Reply with 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.

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





PostPosted: Wed Aug 02, 2006 2:38 am    Post subject: Re: Indy 10 and Encoding Email Attachments are very slow Reply with quote

"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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.