-
Notifications
You must be signed in to change notification settings - Fork 534
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Xamarin.Android.Build.Tasks] reduce task time #2093
[Xamarin.Android.Build.Tasks] reduce task time #2093
Conversation
0c2bca6
to
9527ffc
Compare
I think the removal of the temp files are breaking something:
Will look into it tomorrow. |
@StephaneDelcroix can we revert just the Temp file changes and leave the Linq and directory changes in? We can look at the temp file Changes in a different PR. |
@StephaneDelcroix Could you share some binlogs with the speedup we see with this change? |
@dellis1972 sure I could cut that in parts, but the biggest gain in speed is from avoiding the double-temp file situation @pierceboggan sure |
@StephaneDelcroix yes, but it looks like the temp file changes broke a few tests. I would like to get the linq changes in asap, then we can focus a new PR on those temp changes. Otherwise the PR will be held up until it is green. Alternatively, fix the problem that the test is highlighting, but I suspect that will take a bit more time. |
9527ffc
to
518186d
Compare
@dellis1972 removed the breaking parts, creating a new PR for it using xabuild, on this mbp13, on a blank forms + android project (netstandard2) Caveat emptor: times not averaged full binlogs in your mailbox 62d639b (master) : /t:rebuild =>bl0.binlog
62d639b (master) : /t:build (no changes) => bl1.binlog
62d639b (master) : /t:build (change in the NS project) =>bl2.binlog
linq fixes : /t:rebuild =>bl3.binlog
linq fixes : /t:build (no changes) =>bl4.binlog
linq fixes : /t:build (change in NS project)=>bl5.binlog
linq + temp fixes (not in this PR anymore) : /t:rebuild =>bl6.binlog
linq + temp fixes : /t:build (no changes) =>bl7.binlog
linq + temp fixes : /t:build (changes in NS) =>bl8.binlog
|
build |
1 similar comment
build |
|
||
var lastUpdate = DateTime.MinValue; | ||
if (!string.IsNullOrEmpty (AndroidConversionFlagFile) && File.Exists (AndroidConversionFlagFile)) { | ||
lastUpdate = File.GetLastWriteTimeUtc (AndroidConversionFlagFile); | ||
} | ||
Log.LogDebugMessage (" AndroidConversionFlagFile modified: {0}", lastUpdate); | ||
|
||
var resourcedirectories = ResourceDirectories.Where (s => s != item).Select(s => s.ItemSpec).ToArray(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@StephaneDelcroix I think too much got taken out.
Something should use this variable?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
forgot to push. fixed
- simplify linq queries in ConvertResourceCases
518186d
to
2128c04
Compare
- simplify linq queries in ConvertResourceCases
This commit does 3 changes to ConvertResourceCase, in order to
drastically reduces execution times. On my sample, execution times are
less than half of the original times:
xmls
files (thx @jonathanpeppers)reosurcedictionaries
out of the loopfile. Change the return value of UpdateXmlResource to indicate if the
file has been changed or not.