Skip to content

Latest commit

 

History

History
47 lines (29 loc) · 918 Bytes

README.rst

File metadata and controls

47 lines (29 loc) · 918 Bytes

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