Performance Update

I am disabling saving events as it seems quite stressful on IndexedDB as
well as having to parse everything. We need some smart saving where we
only save data relative to the user. Such as profiles last seen within
the day or so. Anything else can simply be refetched. Storing 50,000 events
does not really help the app that much, but does give it a better
loading start.
This commit is contained in:
Thomas Mathews 2022-12-28 10:07:00 -08:00
parent cf95d29184
commit 4fbb7875fb
2 changed files with 6 additions and 6 deletions

View file

@ -120,7 +120,7 @@ function view_timeline_update(model) {
const latest_ev = el.firstChild ?
model.all_events[el.firstChild.id.slice(2)] : undefined;
const left_overs = [];
while (model.invalidated.length > 0) {
while (model.invalidated.length > 0 && count < 500) {
var evid = model.invalidated.pop();
// Remove deleted events first