Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Cpython
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sip
Cpython
Commits
014d52ff
Commit
014d52ff
authored
Sep 8, 2016
by
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D)
Browse files
Options
Downloads
Patches
Plain Diff
document --with-optimizations in the README for issue26359.
parent
2b2a9be9
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
README
+13
-4
13 additions, 4 deletions
README
with
13 additions
and
4 deletions
README
+
13
−
4
View file @
014d52ff
...
@@ -46,16 +46,17 @@ For example:
...
@@ -46,16 +46,17 @@ For example:
(This will fail if you *also* built at the top-level directory.
(This will fail if you *also* built at the top-level directory.
You should do a "make clean" at the toplevel first.)
You should do a "make clean" at the toplevel first.)
If you need an optimized version of Python, you type "make profile-opt" in the
To get an optimized build of Python, "configure --with-optimizations" before
top level directory. This will rebuild the interpreter executable using Profile
you run make. This sets the default make targets up to enable Profile Guided
Guided Optimization (PGO). For more details, see the section bellow.
Optimization (PGO) and Link Time Optimization (LTO) on most platforms.
For more details, see the sections bellow.
Profile Guided Optimization
Profile Guided Optimization
---------------------------
---------------------------
PGO takes advantage of recent versions of the GCC or Clang compilers.
PGO takes advantage of recent versions of the GCC or Clang compilers.
If ran,
th
e
"
profile-opt"
rule
will do several steps.
If ran,
"mak
e profile-opt" will do several steps.
First, the entire Python directory is cleaned of temporary files that
First, the entire Python directory is cleaned of temporary files that
may have resulted in a previous compilation.
may have resulted in a previous compilation.
...
@@ -75,6 +76,14 @@ collected in the previous one. The end result will be a Python binary
...
@@ -75,6 +76,14 @@ collected in the previous one. The end result will be a Python binary
that is optimized and suitable for distribution or production installation.
that is optimized and suitable for distribution or production installation.
Link Time Optimization
----------------------
LTO takes advantages of recent compiler toolchains ability to optimize across
the otherwise arbitrary .o file boundary when building final executables or
shared libraries for additional performance gains.
What's New
What's New
----------
----------
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment