Skip to content

Paket overhead on compile #3196

Closed
Closed

Description

@haf

Cross-posted as a question: https://stackoverflow.com/questions/50255905/improve-edit-run-cycle-time-on-net-core

Feel free to close issue; it's just for your information.

Activity

  1. forki commented on May 10, 2018

    @forki
    Member
  2. haf commented on May 14, 2018

    @haf
    MemberAuthor

    So this is probably an issue in paket? Because paket does about a minute of restores when there's no need for restoring anything. Is there anything to do about the long restore times when nothing has changed?

  3. forki commented on May 14, 2018

    @forki
    Member

    can you please update your paket.targets file (install should do that) and try with 5.163 again?

  4. haf commented on May 14, 2018

    @haf
    MemberAuthor

    That unfortunately breaks it all

    C:\dev\logary\.paket\Paket.Restore.targets(132,5): error MSB4044: The "ReadLinesFromFile" task was not given a value for the required parameter "File". [C:\dev\logary\s
    rc\Logary.PerfTests\Logary.PerfTests.fsproj]
    
  5. haf commented on May 14, 2018

    @haf
    MemberAuthor

    I've pushed the WIP, so you can test on the logary branch if you want.

  6. haf commented on May 14, 2018

    @haf
    MemberAuthor

    This is what you use to run it:

    hfeldt@catamorphism MINGW64 /c/dev/logary/src/Logary.PerfTests (feature/benchmarks)
    $ dotnet run --configuration Release --framework netcoreapp2.0
    
  7. matthid commented on May 14, 2018

    @matthid
    Member

    @haf In the targets file is the line ReadLinesFromFile File="%(PaketResolvedFilePaths.Identity)" >
    Can you try adding a condition like Condition="'@(PaketResolvedFilePaths)' != ''" and try again?

  8. matthid commented on May 14, 2018

    @matthid
    Member

    Also can you please try to run dotnet run with the /bl:mylog.binlog parameter and attach the generated logfile to this issue?

  9. haf commented on May 14, 2018

    @haf
    MemberAuthor

    I think that solves it, but I can't run the build script to verify because paket replaces paket.restore.targets. I will try a few different things and report back.

  10. matthid commented on May 14, 2018

    @matthid
    Member

    thing is paket shouldn't be run at all after a full restore

  11. haf commented on May 14, 2018

    @haf
    MemberAuthor

    The 163 version + @matthid's condition solves the problem! // @forki

  12. matthid commented on May 15, 2018

    @matthid
    Member

    @haf I think forki already released again, can you check if perf is better now?

  13. haf commented on May 15, 2018

    @haf
    MemberAuthor

    Much better!

  14. forki commented on May 15, 2018

    @forki
    Member

    yay!

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