Cretezy / redux_persist

Persist Redux State
https://pub.dartlang.org/packages/redux_persist
MIT License
130 stars 41 forks source link

Quick question #43

Closed richie-south closed 5 years ago

richie-south commented 5 years ago

Hey 👋

Just wondering if this affects redux / flutter performance in any way? :)

Cretezy commented 5 years ago

It really shouldn't. The saving/loading is fully async, so disk operations are obviously off-thread, the biggest time spent is in parsing/stringifying, so small to medium states will be just fine and very fast, so unless you have a huge state (many MBs), it should be extremely quick.

If you need a huge state, I would recommend using SQLite instead, where you can load what you need as you go (more complex, but can be more performant)