Compress strings- networking

Not guessing panda has a way to compress data/strings does it? I know we can use zlib for the best way using python, so maybe add that in for panda to use with?

Like:
string_compress = self.data.compress([level of compression])

as you already mentioned python already has a module for compressing strings. re-implementing or re-wrapping it inside panda would make little sense.

using zlib is fine. it belongs to pythons default modules after all.

I found that compression network traffic rarely saves you any space. Do some tests first.

hm. when the messages are short there propably is little optimization. thought for long messages it might do some good.
what’s more of a concern. i once did loopback tests while monitoring the number of packets and data and stuff. using compressed strings my transmission ate a lot cpu-power and was significantly slower then the uncompressed one.