avoid scanning a file again if it has not been modified
ClosedPublic

Authored by mgallien on May 4 2018, 9:36 PM.

Details

Summary

avoid scanning a file again if it has not been modified

ensure we get correct behavior on application start with existing tracks

clean up of obsolete way to track removed tracks between application starts

do not yet remove tracks that have been removed when the application was not
running. This is a regression that I will fix later.

BUG: 391892

Test Plan

mostly works but subsequent starts are much faster

Diff Detail

Repository
R255 Elisa
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
mgallien requested review of this revision.May 4 2018, 9:36 PM
mgallien created this revision.

Please test and provide feedback. The work is not finished but it mostly should starts much faster while still updating modified tracks at start.

mgallien retitled this revision from avoid scanning a file again if it has not been modified to [WIP] avoid scanning a file again if it has not been modified.May 5 2018, 9:25 AM
mgallien edited the summary of this revision. (Show Details)
januz added a subscriber: januz.May 5 2018, 11:52 PM

I did a quick test without changing files between runs, the first startup took a few seconds to finish importing but subsequent startups were instantaneous. This is looking really good.

mgallien updated this revision to Diff 33741.May 7 2018, 5:30 AM
  • check old files that have been removed when restoring existing tracks
mgallien retitled this revision from [WIP] avoid scanning a file again if it has not been modified to avoid scanning a file again if it has not been modified.May 7 2018, 5:30 AM
mgallien edited the summary of this revision. (Show Details)May 7 2018, 5:35 AM
This revision was not accepted when it landed; it landed in state Needs Review.May 9 2018, 5:09 PM
This revision was automatically updated to reflect the committed changes.
mgallien reopened this revision.May 9 2018, 5:12 PM

It has been closed when pushing a feature branch with it. Sorry for the noise.

astippich accepted this revision.May 9 2018, 6:21 PM
astippich added a subscriber: astippich.

haven't noticed any issues

This revision is now accepted and ready to land.May 9 2018, 6:21 PM
This revision was automatically updated to reflect the committed changes.