gman
01/18/2019, 4:17 AMsettings.showDate
and settings.showFilename
. Of course that 250k can possibly be trimmed to just those photos that are on display (*) but even then there might be 100 to 500 photos visible which just seemed to kill all perf.
Obviously there are ways to optimize but it did make me question if "reactive" stuff is really a solution for anything but relatively small forms. For example one way to fix the perf was to basically move the reactive part much higher up. The "photo grid" is "reactive" to those settings, not each individual photo. Still in a way that doesn't seems to me the promise of "reactive" where I can just declare what I want to display and what state it depends on and "magic" happens so it's wonder if "reactive" is actually the best way.
I suppose I should define reactive. My understand is a reactive system is one in which a change to state triggers a change to all views of that state in some automated way. You don't have to declare the relationship between the state and the views. The fact the view used the state is enough for the system to figure out there's a connection.
(*) given a pinterest style display, any change that affects the size an image is display requires a re-layout so even if you're only displaying a small portion of all photos you actually have to apply to setting to all photos above the ones being viewed in order to figure out what is actually visible given the re-layout.Stefan
01/18/2019, 1:19 PMwtaysom
01/18/2019, 4:49 PMalltom
01/19/2019, 2:37 AMalltom
01/19/2019, 3:30 AM