Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

GH-130090: build time analysis#131005

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
chris-eibl wants to merge22 commits intopython:mainfromchris-eibl:analyse_build_times

Conversation

chris-eibl
Copy link
Member

@chris-eiblchris-eibl commentedMar 9, 2025
edited
Loading

This is how I generated the tables in#130090.

What to do with it?

Don't know, whether we want anything of that branch. Most probably just close.

zanieb reacted with heart emoji
chris-eibland others added21 commitsFebruary 9, 2025 16:30
for _freeze_module in case of clang-cl to speed up the build
Speeds up both MSVC and clang-cl builds.Should most probably done in a separate PR and issue, though.
I've previously gotten compile errors from clang, because the neededintrinsics were not available without that option.Cannot reproduce anymore. Most probably, because I've upgraded toVisual Studio 17.13.0 Preview 5.0, which now ships with clang 19.1.1instead of 18.1.8 and they've done that for compatibility with MSVC?Anyway, let's keep the PR small :)
This reverts commit26fb51f.Shall be done in a separate PR.
This better matches the behaviour of build.bat in case of MSVC PGO builds.
and make it a target with inputs and outputs
because the name is too MSVC specific
Co-authored-by: Steve Dower <steve.dower@microsoft.com>
@@ -23,7 +23,7 @@ extern "C" {
declaration \
_GENERATE_DEBUG_SECTION_LINUX(name)

#if defined(MS_WINDOWS)
#if defined(MS_WINDOWS)&& !defined(__clang__)
Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Interestingly, for debug builds I now need this, too. Never needed before, see#130040 (comment). Will anyway come with that PR...

@@ -420,6 +420,7 @@
<ClCompile Include="..\Modules\blake2module.c">
<PreprocessorDefinitions Condition="'$(Platform)' == 'x64'">HACL_CAN_COMPILE_SIMD128;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(Platform)' == 'x64'">HACL_CAN_COMPILE_SIMD256;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalOptions Condition="'$(Platform)' == 'x64' and '$(LLVMToolsVersion)' &lt; '19'">/arch:AVX</AdditionalOptions>
Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Only as an interim taken from#130447 until we vendor the latest hacl-star that abstracts the AVX intrinsics (#130960)

@@ -0,0 +1,264 @@
import argparse
Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Not a beauty but it creates the tables for me :)

@@ -167,6 +167,30 @@ public override bool Execute() {
</Task>
</UsingTask>

<Target Name="BeginTimeStamp" BeforeTargets="PrepareForBuild">
Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Only needed for detailed timings per project. Could be guarded behind aCondition="'$(PrintBuildTimeStamps)' == 'true'", in case this shall be merged.

from datetime import datetime, date, time

# Verstrichene Zeit 00:00:00.74
msbuild_time_str = "Verstrichene Zeit"
Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

That's the thing I dislike most: msbuild does this localized :(

@chris-eiblchris-eibl changed the titleuse -flto=thin for clang-cl on WindowsGH-130090: build time analysisMar 10, 2025
@bedevere-appbedevere-appbot mentioned this pull requestMar 10, 2025
@chris-eibl
Copy link
MemberAuthor

Closing, since this served its purpose. Build time analysis is done, in case someone else ever wants to do something like that:
PCbuild/analyse_build_times.py andBeginTimeStamp/EndTimeStamp is the only stuff needed ...

@chris-eiblchris-eibl deleted the analyse_build_times branchMarch 22, 2025 17:53
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant
@chris-eibl

[8]ページ先頭

©2009-2025 Movatter.jp