Page 1 of 1

Performance difference between send and batchsend?

Posted: Fri Aug 24, 2007 8:09 am
by kingstrife
Hi all,

i am puzzled by the performance difference between

1) for loop which executes the send N times

VS

2) a batch send which send N recipients

The reason for asking is that for every recipient, i would like to address them by their names in the message body. So method 1 would make it much easier. Will i get bad performance by looping the send() .

Thanks,
strife

Posted: Fri Aug 24, 2007 8:44 am
by Chris Corbyn
You won't get bad performance using send() inside a loop, provided you re-use just one Swift_Message object and don't create new ones (I do some runtime caching which keeps things fast).

Have you looked at the decorator plugin?

http://www.swiftmailer.org/wikidocs/v3/ ... /decorator

:)

Posted: Fri Aug 24, 2007 8:47 am
by kingstrife
thanks for the quick reply! i will have a look at this!