Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
How to improve your code quality
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
LBMC
Hub
formations
How to improve your code quality
Commits
6f3bee8d
Commit
6f3bee8d
authored
Apr 28, 2021
by
François Gindraud
Browse files
Options
Downloads
Patches
Plain Diff
Session 7 (finale)
parent
39ae6d7c
Branches
master
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Readme.md
+1
-1
1 addition, 1 deletion
Readme.md
content.md
+2
-1
2 additions, 1 deletion
content.md
with
3 additions
and
2 deletions
Readme.md
+
1
−
1
View file @
6f3bee8d
...
@@ -14,4 +14,4 @@ Sessions :
...
@@ -14,4 +14,4 @@ Sessions :
4.
Unit testing. normalize example. Packaging & distributions concerns.
4.
Unit testing. normalize example. Packaging & distributions concerns.
5.
Practice with paddedtensor example.
5.
Practice with paddedtensor example.
6.
Numerical problems (floats)
6.
Numerical problems (floats)
7.
*p
erformance
concerns*
7.
P
erformance
101, overview of hardware details
This diff is collapsed.
Click to expand it.
content.md
+
2
−
1
View file @
6f3bee8d
...
@@ -546,6 +546,7 @@ Optimizing this part of the code has the most effect.
...
@@ -546,6 +546,7 @@ Optimizing this part of the code has the most effect.
Use tools for the code language !
Use tools for the code language !
Using a C profiler in python will tell you which interpreter internal function costs more, not functions from the python code.
Using a C profiler in python will tell you which interpreter internal function costs more, not functions from the python code.
Compiled languages with C compatibility : perf + processing (flamegraphs, ...) is very effective.
Compiled languages with C compatibility : perf + processing (flamegraphs, ...) is very effective.
Python : cprofile.
## Optimize
## Optimize
Many strategies are very dependent on the code.
Many strategies are very dependent on the code.
...
@@ -568,9 +569,9 @@ Readability can be reduced in optimized code
...
@@ -568,9 +569,9 @@ Readability can be reduced in optimized code
Hardware related : generally not possible in interpreted languages (lack of fine control).
Hardware related : generally not possible in interpreted languages (lack of fine control).
Computer has many sub-components that can affect performance :
Computer has many sub-components that can affect performance :
-
cpu caches (data & instruction)
-
memory connection to cpu
-
memory connection to cpu
-
memory internal structure
-
memory internal structure
-
cpu caches (data & instruction)
-
TLB / MMU : virtual memory (mostly for security)
-
TLB / MMU : virtual memory (mostly for security)
-
computing units number, organisation, timings : simple integer ALU (&,|,+...), complex integer (
*
,/,mod,...), floating point, vectorized
-
computing units number, organisation, timings : simple integer ALU (&,|,+...), complex integer (
*
,/,mod,...), floating point, vectorized
-
superscalar paradigm : "asynchronous" fetch/decode/execute
-
superscalar paradigm : "asynchronous" fetch/decode/execute
...
...
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