Skip to content

Serious perf regression between 0.22.0 and 0.23.0 #1368

Closed

Description

@AArnott

I recently upgraded Nerdbank.GitVersioning from libgit2sharp 0.22.0 to 0.23.0-pre20160803182831 because it fixed #1338. But after running my tests, I found there was a huge perf regression in the newer version.

Before, with 0.22.0:
image

After, with 0.23.0-pre20160803182831:
image

Repro instructions:

git clone https://github.com/AArnott/Nerdbank.GitVersioning.git
cd Nerdbank.GitVersioning
git checkout 4613c2516787
.\init.ps1
src\Nerdbank.GitVersioning.sln

In VS, build the solution.
In Test Explorer set "_roundtrip" to be your test filter and run tests.

Activity

  1. added a commit that references this issue on Sep 19, 2016
  2. AArnott commented on Sep 19, 2016

    @AArnott
    ContributorAuthor

    I ran an ETL trace on the regression. It seems very clearly due to an added new StackTrace(int, bool) call made from the Libgit2Object constructor:

    Name                                                                        Inc %         Inc
     libgit2sharp!LibGit2Sharp.Core.Handles.Libgit2Object..ctor(void*,bool)      60.8      18,112
    + mscorlib.ni!System.Diagnostics.StackTrace..ctor(Int32, Boolean)$##6003121  58.9      17,563
    
  3. AArnott commented on Sep 19, 2016

    @AArnott
    ContributorAuthor

    It looks like LEAKS_TRACKING was defined for the build that released to nuget. :(

  4. ethomson commented on Sep 19, 2016

    @ethomson
    Member

    Ouch. Thanks for digging in. I can merge #1357 and spin a new prerelease build.

  5. biyimaks commented on Sep 23, 2016

    @biyimaks

    @ethomson when will a new build be created?

  6. ethomson commented on Sep 23, 2016

    @ethomson
    Member
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions