reflex-dev / reflex

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

add reflex perf mode #4388

Open benedikt-bartscher opened 1 week ago

benedikt-bartscher commented 1 week ago

add rx.Config (perf_mode) or env variable (REFLEX_PERF_MODE). Value should be an enum with warn, raise and ignore. Default should be warn, to avoid breaking changes.

warn: Warn about possible performance implications raise: raise Exception if performance issues are found ignore: do nothing, disable checks completely

iirc reflex currently only checks for state sizes. I would love to add another check for always dirty substates (caused by uncached vars).

linear[bot] commented 1 week ago

ENG-4119 add reflex perf mode

benedikt-bartscher commented 6 days ago

TODO: add socketio limit https://github.com/reflex-dev/reflex/pull/4392/files#r1851155673