perf(system): store value instead of version number in Link for dirty check #14
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Use values instead of version number in Link to simplify the algorithm.
Performance improvement is about 2~4.x%. Memory usage has been slightly improved.
master branch
1.48 µs/iter
1.47 µs
1.49 µs
1.50 µs
1.51 µs
7.77 µs/iter
7.76 µs
7.78 µs
7.79 µs
7.79 µs
68.80 µs/iter
67.88 µs
68.75 µs
72.33 µs
96.71 µs
13.20 µs/iter
13.19 µs
13.20 µs
13.21 µs
13.21 µs
75.89 µs/iter
75.00 µs
75.71 µs
81.42 µs
104.33 µs
685.36 µs/iter
680.50 µs
686.17 µs
706.83 µs
726.17 µs
130.18 µs/iter
129.00 µs
130.00 µs
135.79 µs
163.08 µs
754.27 µs/iter
748.33 µs
754.04 µs
776.04 µs
785.08 µs
6.86 ms/iter
6.81 ms
6.88 ms
7.01 ms
7.02 ms
This PR
1.45 µs/iter
1.44 µs
1.44 µs
1.50 µs
1.73 µs
7.44 µs/iter
7.42 µs
7.44 µs
7.45 µs
7.45 µs
65.88 µs/iter
64.92 µs
65.79 µs
71.46 µs
144.25 µs
12.93 µs/iter
12.92 µs
12.94 µs
12.94 µs
12.94 µs
72.63 µs/iter
71.63 µs
72.29 µs
84.38 µs
255.42 µs
655.26 µs/iter
650.33 µs
655.29 µs
695.96 µs
720.38 µs
127.43 µs/iter
126.00 µs
126.88 µs
147.54 µs
246.33 µs
724.77 µs/iter
715.13 µs
720.13 µs
878.00 µs
1.11 ms
6.56 ms/iter
6.51 ms
6.59 ms
6.77 ms
6.83 ms