Merge lp:~nataliabidart/ubuntuone-client/speed-up-that-local-rescan into lp:ubuntuone-client
Proposed by
Natalia Bidart
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | John O'Brien | ||||
Approved revision: | 429 | ||||
Merged at revision: | not available | ||||
Proposed branch: | lp:~nataliabidart/ubuntuone-client/speed-up-that-local-rescan | ||||
Merge into: | lp:ubuntuone-client | ||||
Diff against target: |
224 lines (+109/-22) 4 files modified
tests/syncdaemon/test_fsm.py (+79/-3) ubuntuone/syncdaemon/event_queue.py (+7/-8) ubuntuone/syncdaemon/filesystem_manager.py (+11/-0) ubuntuone/syncdaemon/local_rescan.py (+12/-11) |
||||
To merge this branch: | bzr merge lp:~nataliabidart/ubuntuone-client/speed-up-that-local-rescan | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
John O'Brien (community) | Approve | ||
Facundo Batista (community) | Approve | ||
Review via email: mp+22145@code.launchpad.net |
Commit message
Speeding up the local rescan by retrieving metadata per directory. As per latest profile info, we'd be gaining 24% of speed!
Description of the change
Added retrieval of metadata objects per directory (filesystem_
Avoided using os.path.dirname when possible (event_queue).
Made Local Rescan usa the per directory metadata retriever to speed up scanning (local_rescan).
To post a comment you must log in.
Approved, but please remove "share_id" from _get_share_info() parameters (don't know why this is not catched by pylint as "unused vars").