Skip to content

Commit

Permalink
[chore] update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Siubaak committed Feb 6, 2024
1 parent a57ba3d commit fd8c3d8
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions docs/OPTIMIZATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,22 @@ Macbook Pro 2021
原生:
- 0.2ms
- 1.8ms
-
-
- 1.3ms
- 1ms

原始
-
原始效果
- 23.4ms
- 11.1ms
- 10.6ms
- 6.2ms

优化:
## 第一次优化

优化项:
- 原来每一行都yield出来再判断是否断点,改成先判断断点再yield出来,减少generator保存状态的性能消耗

优化效果:
- 17.2ms (-26.5%)
- 10ms (-9.9%)
- 6ms (-43.4%)
- 5ms (-19.4%)

0 comments on commit fd8c3d8

Please sign in to comment.