Re: Domain scokets? ceptcl?
- From: "graeme.pietersz@xxxxxxxxx" <graeme.pietersz@xxxxxxxxx>
- Date: Thu, 31 Jul 2008 09:45:38 -0700 (PDT)
On Jul 31, 9:32 pm, "Gerald W. Lester" <Gerald.Les...@xxxxxxx> wrote:
graeme.piete...@xxxxxxxxx wrote:
On Jul 31, 6:38 pm, "Gerald W. Lester" <Gerald.Les...@xxxxxxx> wrote:
graeme.piete...@xxxxxxxxx wrote:How fast are pipes? I might run into performance problems with this
What ways of using unix domain sockets from Tcl are available? ceptclWell the two common ones are pipes between parent and child, or socket on
seems to have been at 0.3 for a long time.
I found at least one extension that uses them (libmsgque), but it
seems to be doing so from C, not TCL (except indirectly).
I want a fast way of a process to communicate with children (forked
using hte fork command from Expect or TclX if it works for me). Other
methods might work for me.
later. yes, I know, premature optimisation, but I would rather know
the potential problem is solveable before I start.
127.0.0.1 (or localhost) on a know port (note -- the parent can use dynamicNeat way to do it, but that is definitely slower than unix domain
port allocation and pass the actual port the children as a command line arg
sockets
I seriously doubt either of the solutions I propose will be the bottle neck
in what you are doing.
There are already a bit of apssing around of the data causing latency:
normally I would not worry about it.
Will do (easy to do actually).
My suggestion is isloate your interprocess communication by abstracting it
into one or two procedures -- then you can switch as desired. This also has
the advantage of allowing you to take advantage of the platform you are on.
Note -- the socket solution is totally platform independent and can be
easily modified if to deal with agents on other boxes instead of just
children on your box.
Thanks, going with pipes. A bit of Googling turned up some numbers,
--
+--------------------------------+---------------------------------------+
| Gerald W. Lester |
|"The man who fights for his ideals is the man who is alive." - Cervantes|
+------------------------------------------------------------------------+
and they are more than fast enough not to be a bottle neck.
This is one I should have been able to solve for myself - if I had
ever read the man page for open properly! I am all the more grateful
for the help. Thanks.
.
- References:
- Domain scokets? ceptcl?
- From: graeme.pietersz@xxxxxxxxx
- Re: Domain scokets? ceptcl?
- From: Gerald W. Lester
- Re: Domain scokets? ceptcl?
- From: graeme.pietersz@xxxxxxxxx
- Re: Domain scokets? ceptcl?
- From: Gerald W. Lester
- Domain scokets? ceptcl?
- Prev by Date: Re: Domain scokets? ceptcl?
- Next by Date: Re: Domain scokets? ceptcl?
- Previous by thread: Re: Domain scokets? ceptcl?
- Next by thread: Re: Domain scokets? ceptcl?
- Index(es):