Open NardJ opened 5 years ago
@Antharon, I tried to make a node.js slave script using mmpa-io, but no success yet. Can you help me with the script?
I managed to put together node.js versions of slave and master. Python and Node.js code is in the demo folder. All seems to work. Is this the way (or at least an acceptable one) to exchange data between different programs?
@bonosoft @Antharon Can you have a look at this?
@NardJ Just out of curiosity how long does it take to do the same from the disk?
@X3msnake Using 1.1GB data as test case I get the following results:
MMap Writing ... 19.1 secs. Reading ... 0.97 secs.
Disk Writing ... 35.9 secs. Reading ...0.34 secs.
@Photonsters/photonsters I found several options to exchange data between programs on https://en.wikipedia.org/wiki/Inter-process_communication.
I did some tests using Ram Mapped Files in python on an old laptop using a hard drive. I think this simple method could already fast enough for our purposes. For a 100M file, reading takes 0.09 sec, writing also takes 0.09 sec. What do you think?
Below the code I used.
Master.py (reader) `
`
Slave.py (writer) `
`