Why is IPC communication so slow?

T

tony

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.
 
P

Peter Duniho

tony said:
[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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top