Tomas Kuliavas wrote:
>>> sending message to program should be faster than opening tcp port.
>>
>> That is a very surprising statement. How do you arrive at that? IMHO the
>> exact opposite is true.
> 
> if script uses smtp, it has to open tcp port, read responses and feed the
> data.
> 
> if script uses program, it just feeds the data.

Not so. It has to create a pipe, start the program on one of its ends,
and *then* feed the data into the other end.

Without having measured it, I would guess that creating the pipe alone
already takes about as much time as opening a TCP connection to
localhost. But both of these are dwarfed by the time it takes to start
up an entire new process.

-- 
Tilman Schmidt                            [EMAIL PROTECTED]
Phoenix Software GmbH                             Tel. +49 228 97199 0
Adolf-Hombitzer-Str. 12                           Fax +49 228 97199 99
53227 Bonn, Germany                      http://www.phoenixsoftware.de


-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
--
squirrelmail-users mailing list
List Address: [EMAIL PROTECTED]
List Archives:  http://sourceforge.net/mailarchive/forum.php?forum_id=2995
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

Reply via email to