Skip to content

Commit

Permalink
Update 2024-05-21-EfficientCPlusPlusPPT.md
Browse files Browse the repository at this point in the history
  • Loading branch information
yangtze736 authored May 21, 2024
1 parent ad7b32a commit 21834b8
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions _posts/life/2024-05-21-EfficientCPlusPlusPPT.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,59 @@ keywords: Performance
description:
---

## 提高C++性能的编程技术

### 导读
![1](/public/img/CPlusPlusPerfProTech.png)

### chapter 1

通过实现Trace跟踪,演示了如何提高性能

### chapter 2

#### 2.1 RAII实现,继承开销

#### 2.2 说明了Trace类实现,String数据成员的复合开销

#### 2.3 使用的地方再创建c++类对象

#### 2.4 冗余构造,使用显示初始化

<!-- more -->

### chapter 3

c++多态特性,虚函数性能损失主要在无法内联。模板兼具重用和效率,可以提高性能。

### chapter 4

RVO(返回值优化)

### chapter 5

临时对象对性能的影响(临时对象产生原因:定义、类型不匹配、值传递、值返回)

### chapter 6 单线程内存池实现

### chapter 7 多线程内存池实现

### chapter 8 内联

### chapter 9 内联

### chapter 10 内联

### chapter 11

### chapter 12

### chapter 13

### chapter 14

### chapter 15

### chapter 16


0 comments on commit 21834b8

Please sign in to comment.