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:
parent
cf95d29184
commit
4fbb7875fb
2 changed files with 6 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue