Skip to content

Shylock-Hg/c-cpp-optimization-tricks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The c/c++ optimization tricks

Introduction

This is the note about my tricks to optimize c/c++ program.On the top,the software optimization often follow the path as below:

  order coefficient
time Algorithm Tricks
space Algorithm Tricks

So in this book we concern the Optimization Tricks in c/c++ program.

Tricks List

  1. Memory Padding
  2. Restrict Modifier
  3. Inline or Macro Function
  4. Tail Function Optimization
  5. Noexcept
  6. Continuous Memory
  7. Conditional Branch Prediction
  8. Bit Operator
  9. Constexpr
  10. Emplace API
  11. Empty Array In Struct
  12. Function calling
  13. Auto vectorized

About

Some useful optimization tricks about c/++ programming.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published