Do you always execute projslow before projfast?
It could be that the first call does some work that gets cached locally (like a DNS name lookup or something) and any calls made after use the cached values?
No - I did test for that. Even if I ececute projslow 4 or 5 times and lets say there are 2 SMTPMail.Send calls in the projslow, the first call is always slow.
I have been testing all day, can't figure out what can be wrong.
This is what shows in the log file for the two calls:
#Fields: date time cs-method time-taken
2007-12-21 18:22:40 HELO 0
2007-12-21 18:22:40 MAIL 0
2007-12-21 18:22:40 RCPT 0
2007-12-21 18:22:40 RCPT 0
2007-12-21 18:22:40 RCPT 0
2007-12-21 18:22:40 DATA 94
2007-12-21 18:22:40 QUIT 0
2007-12-21 18:22:40 HELO 0
2007-12-21 18:22:40 MAIL 0
2007-12-21 18:22:40 RCPT 0
2007-12-21 18:22:40 DATA 172
2007-12-21 18:22:40 QUIT 0
I recorded the time before and after the SMTP send call - for first call in projSlow it takes 14.0001792 and sec call in projSlow it takes 0.1875024.
The log file does not seem to show that it takes 14.0001792 sec in the first call. Not sure where time is spend when SMTP.Send is called