Robin Appelman
|
be3cfdca90
|
do payload masking directly during reading and writing of the frame
this removes the need to have unique mutable access to the payload data
|
4 years ago |
Evgeniy A. Dushistov
|
5a95f12c6d
|
refactoring/apply_mask: reduce number of usage of unsafe to 1
Plus it should be faster now:
apply_mask/fallback/0 time: [24.282 ns 24.727 ns 25.255 ns]
apply_mask/fast/0 time: [11.921 ns 11.963 ns 12.011 ns]
apply_mask/fast_safe/0 time: [7.9340 ns 7.9807 ns 8.0261 ns]
apply_mask/fallback/1 time: [25.284 ns 25.710 ns 26.124 ns]
apply_mask/fast/1 time: [20.433 ns 20.476 ns 20.511 ns]
apply_mask/fast_safe/1 time: [9.3208 ns 9.3833 ns 9.4470 ns]
apply_mask/fallback/2 time: [16.051 ns 16.160 ns 16.275 ns]
apply_mask/fast/2 time: [20.564 ns 20.569 ns 20.574 ns]
apply_mask/fast_safe/2 time: [9.1449 ns 9.1830 ns 9.2189 ns]
apply_mask/fallback/3 time: [15.386 ns 15.548 ns 15.715 ns]
apply_mask/fast/3 time: [18.836 ns 18.867 ns 18.917 ns]
apply_mask/fast_safe/3 time: [8.3092 ns 8.3566 ns 8.4076 ns]
|
5 years ago |
Evgeniy A. Dushistov
|
9764ac13a1
|
infra/apply_mask: test more case for apply_mask
make sure that input with len 0,1,2,3 also tested
|
5 years ago |
Artem Vorotnikov
|
cbf80ecc76
|
Edition 2018, formatting, clippy fixes
|
6 years ago |
Alexey Galakhov
|
a2e122ab9e
|
refactor: mask: pass mask by value
Signed-off-by: Alexey Galakhov <agalakhov@snapview.de>
|
7 years ago |
Alexey Galakhov
|
e4a52cde05
|
mask: update for actual Rust version
Closes #35
Signed-off-by: Alexey Galakhov <agalakhov@snapview.de>
|
7 years ago |
Alexey Galakhov
|
3abe419e98
|
Fix fast masking of unaligned data
Signed-off-by: Alexey Galakhov <agalakhov@snapview.de>
|
8 years ago |
Alexey Galakhov
|
01a9211a84
|
Move mask functions into a separate file
Signed-off-by: Alexey Galakhov <agalakhov@snapview.de>
|
8 years ago |