reflex-dev / reflex

🕸️ Web apps in pure Python 🐍
https://reflex.dev
Apache License 2.0
20.42k stars 1.18k forks source link

State compression #4430

Open benedikt-bartscher opened 5 hours ago

benedikt-bartscher commented 5 hours ago

Turns out, state compression can make a big difference. Of course depending on the circumstances (Redis Bandwidth, Latency, State Size, ...). You can run REDIS_URL=redis_host:redis_port pytest benchmarks/benchmark_pickle.py to test it on your machine.

Will probably evaluate other compression algorithms (especially those integrated into python) in a followup and introduce a ReflexCompressor Interface.