• Stan Hu's avatar
    Speed up generation of commit stats by using Rugged native methods · 25a86875
    Stan Hu authored
    The previous implementation iterated across the entire patch set
    to determine the number of lines added, deleted, and changed. Rugged
    has a native method `Rugged::Diff#stat` that does this already,
    which appears to be a little faster and require less RAM than doing
    this ourselves.
    
    Improves performance in #41524
    25a86875
commit_stats.rb 1.1 KB