Giter Club home page Giter Club logo

Comments (8)

KirillOsenkov avatar KirillOsenkov commented on September 23, 2024

On a large build with 900 projects this target consumes 28 minutes cumulatively (wall clock time is less because the build is massively parallel)

For the largest project it takes 15 seconds:
image

from msbuild.

KirillOsenkov avatar KirillOsenkov commented on September 23, 2024

Is AssignTargetPath called twice for @(_CompileItemsToCopy)? Once for transitive, once for this project? I suppose it's benign and idempotent?

from msbuild.

KirillOsenkov avatar KirillOsenkov commented on September 23, 2024

To clarify, out of 15 seconds for that target, 12 seconds is calling the MSBuild task on the project references, so the remaining 3.3 seconds must be the overhead, perhaps partially attributable to item manipulation:
image

I might be totally wrong though, need to measure, and perhaps in a tight loop in a unit-test using BenchmarkDotNet.

from msbuild.

KirillOsenkov avatar KirillOsenkov commented on September 23, 2024

The way to measure perf here would be to build a large-ish solution such as MSBuild itself, or Roslyn, and query for $target GetCopyToOutputDirectoryItems $time in both binlogs, and see what difference does it make. We might or might not see a difference in the total build duration, and I'd be curious if we see a diff or not. But even if the time for the targets comes down, it'll be a good thing (because we'll be doing less compute and less allocations).

from msbuild.

Forgind avatar Forgind commented on September 23, 2024

Apparently the fact that this makes the condition more complicated is more impactful than removing a line of code:
image

(Current MSBuild on the right)

from msbuild.

KirillOsenkov avatar KirillOsenkov commented on September 23, 2024

Huh, that's counter-intuitive, but thanks for checking!

from msbuild.

KirillOsenkov avatar KirillOsenkov commented on September 23, 2024

if you still have both binlogs, can you send them to me? and your branch with the prototype

from msbuild.

Forgind avatar Forgind commented on September 23, 2024

Reopening because I forgot to build -c Release until I've done more testing

from msbuild.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.