Skip to content

Commit

Permalink
Better wording
Browse files Browse the repository at this point in the history
  • Loading branch information
zjp-CN authored Apr 22, 2022
1 parent 4f61a67 commit ed42f8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/decl-macros/patterns/tt-muncher.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ macro_rules! mixed_rules {
# 性能建议

> 译者注:要点是
> 1. 如果传入过程宏的标记很简短,请一次处理很多标记来减少递归次数(比如运用反复匹配)
> 2. 如果无法控制标记的长短(或者输入标记可能很长),编写规则简单的宏,然后多次调用
> 1. 可以一次处理很多标记来减少递归次数(比如运用反复匹配)
> 2. 可以编写规则简单的宏,然后多次调用
> 3. 把容易匹配到的规则放到前面,以减少匹配次数(因为规则顺序决定了匹配顺序)
TT 撕咬机天生就是二次复杂度的。考虑一个 TT 撕咬机
Expand Down

0 comments on commit ed42f8b

Please sign in to comment.