There's no need to continuously append to {todo} when indexing
multiple inboxes. They're not redundantly indexed (because the
IdxStack is discarded, making it a noop), but it's still a waste
of memory keeping the $unit hashrefs around.
warn "E: $ekey unsupported inbox version (v$v)\n";
return;
}
warn "E: $ekey unsupported inbox version (v$v)\n";
return;
}
- index_todo($self, $sync, $_) for @{$sync->{todo}};
+ index_todo($self, $sync, $_) for @{delete($sync->{todo}) // []};
}
sub eidx_sync { # main entry point
}
sub eidx_sync { # main entry point
}
}
# work forwards through history
}
}
# work forwards through history
- index_todo($self, $sync, $_) for @{$sync->{todo}};
+ index_todo($self, $sync, $_) for @{delete($sync->{todo}) // []};
$self->{oidx}->rethread_done($opt);
$self->done;
$self->{oidx}->rethread_done($opt);
$self->done;