Comments (11)
Interesting. Will have a look in the coming weeks.
from python-p2p-network.
Do you have an idea or proposal to integrate it?
from python-p2p-network.
yes!. I already made it work here.
but I am unable to integrate it with your code.
my working code link : https://github.com/akasheinstein/socket-communication-with-compression
from python-p2p-network.
Ah, I see. I will have a look and propose a compression option in the code shortly.
from python-p2p-network.
I have created a feature branch "feature_compression" in which I have started the development. So you can check it. At this moment, I am checking how to implement it within the framework without breaking current functionality. Could you give an easy example how to send and recieve compressed data? Maybe you could elaborate on how to send and recieve compressed data for the data types str, bytes and dict. That would help me a lot :).
from python-p2p-network.
@akasheinstein Which compression library fo you use? I cannot find it.
from python-p2p-network.
I have started the implementation with three options, namely bzip2, lzma and lzip. Current implementation not yet correct.
from python-p2p-network.
@akasheinstein The compression has been implemented. Three options can be chosen, namely bzip2, lzma and zlib. Zlib has te best performance. When you send data, you are able to provide which compression you would like to add. Could you test and check it? Thanks!
from python-p2p-network.
iam using zlib for compression.
from python-p2p-network.
yeah, I'll check the code.
from python-p2p-network.
I will close the issue. If you have any questions or other things regarding compression, you can always create a new issue.
from python-p2p-network.
Related Issues (20)
- I have question about the "nodeconnection.py" HOT 1
- I have link question between "node.py" and "nodeconnection.py" HOT 2
- Pip3 version is out of date and unstable HOT 2
- how HOT 1
- how to HOT 1
- how to use send_to_node api? HOT 2
- Import "p2pnetwork.node" could not be resolved HOT 1
- Connect to a node already connected to HOT 3
- Bug in connect_with_node function in node.py HOT 2
- Change to Tox testing suite HOT 3
- New feature: Plugins HOT 4
- Length protocol instead of EOT HOT 13
- Issue: unit test test_node_max_connections failed HOT 2
- Info about node discovery HOT 3
- Possible vulnerability on the node unique ID HOT 2
- OS Error when stopping nodes HOT 1
- Non UTF-8 messages will throw exception
- Crash if node id malformed HOT 1
- Unit tests do work on Windows ... not on Linux HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-p2p-network.