Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Cr1bb1e authored Oct 17, 2022
1 parent 3f4f147 commit 88b95e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ static{
private final Map<Integer, CalcState<T>> cache = Maps.newHashMap();
```
可能你已经注意到,`cache`的键是`Integer`类型的,的确,通常`String`会更常用,然而在万次计算的场景下,`String`的拼接已经成了瓶颈。
为了实现高性能的键,`Permutation`通过位移对`Byte`数组的前3为进行扰动,确保键的唯一性和性能。
为了实现高性能的键,`Permutation`通过位移对`Byte`数组的前3位进行扰动,确保键的唯一性和性能。

```Java
private static Integer calcKey(List<Byte> a){
Expand Down

0 comments on commit 88b95e1

Please sign in to comment.