Comments (8)
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:
from msbuild.
Is AssignTargetPath called twice for @(_CompileItemsToCopy)? Once for transitive, once for this project? I suppose it's benign and idempotent?
from msbuild.
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:
I might be totally wrong though, need to measure, and perhaps in a tight loop in a unit-test using BenchmarkDotNet.
from msbuild.
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.
Apparently the fact that this makes the condition more complicated is more impactful than removing a line of code:
(Current MSBuild on the right)
from msbuild.
Huh, that's counter-intuitive, but thanks for checking!
from msbuild.
if you still have both binlogs, can you send them to me? and your branch with the prototype
from msbuild.
Reopening because I forgot to build -c Release until I've done more testing
from msbuild.
Related Issues (20)
- [Bug]: Satellite assemblies with un-predefined cultures are not copied correctly into depended projects
- Rename to CheckRule and CheckConfiguration correspondently
- Use File scoped namespaces in BuildCheck template
- [Bug]: can't find project file in root directory HOT 2
- [Refactoring] make file structure correspond to namespaces HOT 2
- [Bug]: LNK2005 and LNK1169 Error one or more multiply defined symbols found
- Add template invocation and compilation as a CI step
- BuildCheck NET 10.0 investments HOT 1
- BuildRequestEngine unhandled exception HOT 2
- [Investigation] Investigate build pipeline fail HOT 2
- Consider loosening `byte[]` rules in resx resources HOT 2
- [Bug]: No description for -check option in -help
- Unfreeze the xunit version
- [Draft] Telemetry NET 10.0 investments
- Warn about setting properties in .rsp
- [Bug]: Inconsistent behavior of duplicate path separator in property HOT 3
- Investigate possibility to address the SYSLIB0057
- MSBUILD : error : System.NullReferenceException: Object reference not set to an instance of an object HOT 3
- [Bug]: No idiomatic method to prevent content files from referenced projects overwriting files in main project HOT 11
- Clearer message that running .NET Framework MSBuild in a .NET process is unsupported HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from msbuild.