Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
c4f19c40
Commit
c4f19c40
authored
Sep 08, 2016
by
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
document --with-optimizations in the README for issue26359.
parent
280290ad
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
5 deletions
+13
-5
README
README
+13
-5
No files found.
README
View file @
c4f19c40
...
...
@@ -173,10 +173,10 @@ rebuilt. In this case, you may have to run make again to correctly
build your desired target. The interpreter executable is built in the
top level directory.
If you need an optimized version of Python, you type "make profile-opt"
in the top level directory. This will rebuild the interpreter executable
using Profile Guided Optimization (PGO). For more details, see the
section be
low.
To get an optimized build of Python, "configure --with-optimizations" before
you run make. This sets the default make targets up to enable Profile Guided
Optimization (PGO) and Link Time Optimization (LTO) on most platforms.
For more details, see the sections bel
low.
Once you have built a Python interpreter, see the subsections below on
testing and installation. If you run into trouble, see the next
...
...
@@ -194,7 +194,7 @@ Profile Guided Optimization
---------------------------
PGO takes advantage of recent versions of the GCC or Clang compilers.
If ran,
the "profile-opt" rule
will do several steps.
If ran,
"make profile-opt"
will do several steps.
First, the entire Python directory is cleaned of temporary files that
may have resulted in a previous compilation.
...
...
@@ -214,6 +214,14 @@ collected in the previous one. The end result will be a Python binary
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.
Troubleshooting
---------------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment