|
|
|
start date: Wed, 08 Aug 2007 02:24:02 -0000,
posted on: microsoft.public.dotnet.framework
back
| Thread Index |
|
1
tony
|
|
2
Peter Duniho
|
Why is IPC communication so slow?
I use Ipcserverchannel class and Ipcclientchannel to do IPC. I try to
read a file to memory using process A and then use IPC to transport
it
to process B. However, IPC use nearly as much time as from a from
disk, which is very surprising ( I expect it to be much much faster).
What could possibly be the problem?
Part of my code:
Server:
IpcServerChannel serverChannel = new
IpcServerChannel("remote");
ChannelServices.RegisterChannel(serverChannel);
// Expose an object
RemotingConfiguration.RegisterWellKnownServiceType(typeof(SharedCache),
"myObj", WellKnownObjectMode.Singleton);
Client:
clientChannel = new IpcClientChannel();
ChannelServices.RegisterChannel(clientChannel);
RemotingConfiguration.RegisterWellKnownClientType(typeof(SharedObj),
"ipc://remote/myObj");
ShareObj is the shared remoting object which can reading the file
from
the disk and transport the file to the client process.
Date:Wed, 08 Aug 2007 02:24:02 -0000
Author:
|
Re: Why is IPC communication so slow?
tony wrote:
> [multi-posted article]
Please do not multi-post. If you must post to multiple newsgroups,
please learn to cross-post properly, including all newsgroups in a
single post.
Thank you,
Pete
Date:Tue, 07 Aug 2007 21:01:42 -0700
Author:
|
|
|