jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
Signup
SonarQube Plugins
  • SonarQube Plugins
  • SONARPLUGINS-854

Poor performance

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Critical Critical
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: SCM-ACTIVITY-1.2
  • Component/s: SCM Activity
  • Labels:
    None
  • Number of attachments :
    0

Description

Every time a project is analyzed blame information loaded from SCM for all files, but I believe that we can load this information only for changed files and this should improve performance.

Following algorithm can be implemented :

  1. Use TimeMachine to determine what was analysed previously
  2. Use SCM ChangeLogCommand to determine list and number of added/modified files. This is also allows to compute new metric - number of commits (see SONARPLUGINS-348). There are also following problems with ChangeLogCommand :
    • it returns list of files, but location are relative to repository root (tested on svn and git)
    • svnjava provider implements it only for date range
    • for svn it may return files not in current module
  3. Use SCM BlameCommand to determine authors of each added/modified files and TimeMachine for unchanged files

Issue Links

is related to

Bug - A problem which impairs or prevents the functions of the product. SONARPLUGINS-877 "Last commit" metric wrongly computed

  • Major - Major loss of function.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

New Feature - A new feature of the product, which has yet to be developed. SONARPLUGINS-348 Add commit count for past periods

  • Major - Major loss of function.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Evgeny Mandrikov added a comment - 22/Dec/10 8:24 AM - edited

Initial implementation added in r2933. First tests showed significant gain in performance at least for SVN.

Show
Evgeny Mandrikov added a comment - 22/Dec/10 8:24 AM - edited Initial implementation added in r2933 . First tests showed significant gain in performance at least for SVN.
Hide
Permalink
Evgeny Mandrikov added a comment - 23/Dec/10 7:12 PM - edited

Now it works for GIT after hacks in r2951 and r2953.

Show
Evgeny Mandrikov added a comment - 23/Dec/10 7:12 PM - edited Now it works for GIT after hacks in r2951 and r2953 .

People

  • Assignee:
    Evgeny Mandrikov
    Reporter:
    Evgeny Mandrikov
Vote (0)
Watch (0)

Dates

  • Created:
    06/Dec/10 1:03 PM
    Updated:
    31/Mar/11 11:13 AM
    Resolved:
    25/Dec/10 9:24 PM
  • Atlassian JIRA (v5.2.7#850-sha1:b2af0c8)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.