LR should be faster when getting file stats
Bug #476711 reported by
Facundo Batista
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu One Client |
Fix Released
|
High
|
Natalia Bidart | ||
ubuntuone-client (Ubuntu) |
Fix Released
|
Medium
|
dobey |
Bug Description
os.listdir() + for f in that: os.stat(f) is kind of slow for a lot of files.
We could use something like readdir to access that info directly.
Related branches
lp://staging/~nataliabidart/ubuntuone-client/speed-up-that-local-rescan
- John O'Brien (community): Approve
- Facundo Batista (community): Approve
-
Diff: 224 lines (+109/-22)4 files modifiedtests/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)
tags: |
added: chicharra-lucid-speed removed: facundo-lucid |
tags: | added: u1-lucid |
tags: | added: metadata-loading |
tags: | added: chicharra |
Changed in ubuntuone-client: | |
importance: | Medium → High |
Changed in ubuntuone-client: | |
assignee: | Facundo Batista (facundo) → Naty Bidart (nataliabidart) |
status: | Confirmed → In Progress |
tags: | added: package |
Changed in ubuntuone-client: | |
milestone: | none → lucid-beta-2 |
Changed in ubuntuone-client (Ubuntu): | |
status: | New → In Progress |
importance: | Undecided → Medium |
assignee: | nobody → Naty Bidart (nataliabidart) |
milestone: | none → ubuntu-10.04-beta-2 |
Changed in ubuntuone-client: | |
status: | In Progress → Fix Committed |
Changed in ubuntuone-client (Ubuntu): | |
assignee: | Naty Bidart (nataliabidart) → Rodney Dawes (dobey) |
Changed in ubuntuone-client (Ubuntu): | |
status: | In Progress → Fix Released |
tags: | removed: package |
Changed in ubuntuone-client: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
On Fri, 2009-11-06 at 17:33 +0000, Facundo Batista wrote:
> Public bug reported:
>
> os.listdir() + for f in that: os.stat(f) is kind of slow for a lot of
> files.
>
> We could use something like readdir to access that info directly.
For optimal access to this, use bzrlib's functions: osutils. _walkdirs_ utf8 and
bzrlib.
Ciao,
Rob