#54 closed defect (fixed)
extremely slow log parsing with large repository
Reported by: | mgood | Owned by: | cmlenz |
---|---|---|---|
Priority: | critical | Milestone: | 0.5 |
Component: | Trac plugin | Version: | dev |
Keywords: | Cc: | ||
Operating System: |
Description
Since the SourceFileLinkFormatter walks the whole repository branch used for the build, it becomes slower the larger the repository is. On a repository branch of about 4000 nodes it takes about 10 seconds to render.
Attachments (0)
Change History (2)
comment:1 Changed 19 years ago by cmlenz
- Milestone set to 0.5
- Priority changed from major to critical
- Status changed from new to assigned
comment:2 Changed 19 years ago by cmlenz
- Resolution set to fixed
- Status changed from assigned to closed
I've made some changes for this in [268]. Please test to see if that helps.
Now the log formatter will only match file references with line numbers, in the commonly used format filepath:lineno. It no longer walks the entire repository tree for every log... rather, for every file reference, it'll check to see whether there's a corresponding node in the repository. It also uses a path segment cache to avoid redundant lookups.
This should get fixed for 0.5.