Commit c0dc3dd
websocket: 200x faster generate mask (#3204)
* websocket: improve performance of generate mask
* apply comments
* Apply suggestions from code review
* Apply suggestions from code review
* Apply suggestions from code review
Co-authored-by: Aras Abbasi <[email protected]>
* Apply suggestions from code review
* Update lib/web/websocket/frame.js
* Update lib/web/websocket/frame.js
* Update lib/web/websocket/frame.js
Co-authored-by: Aras Abbasi <[email protected]>
---------
Co-authored-by: Aras Abbasi <[email protected]>1 parent ee64eb5 commit c0dc3dd
File tree
2 files changed
+52
-8
lines changed- benchmarks/websocket
- lib/web/websocket
2 files changed
+52
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
5 | 7 | | |
6 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
7 | 12 | | |
8 | 13 | | |
9 | 14 | | |
10 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
11 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
12 | 33 | | |
13 | 34 | | |
14 | 35 | | |
| |||
17 | 38 | | |
18 | 39 | | |
19 | 40 | | |
20 | | - | |
21 | 41 | | |
22 | 42 | | |
23 | 43 | | |
24 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
25 | 47 | | |
26 | 48 | | |
27 | 49 | | |
| |||
43 | 65 | | |
44 | 66 | | |
45 | 67 | | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
50 | 72 | | |
51 | 73 | | |
52 | 74 | | |
| |||
61 | 83 | | |
62 | 84 | | |
63 | 85 | | |
64 | | - | |
65 | | - | |
| 86 | + | |
| 87 | + | |
66 | 88 | | |
67 | 89 | | |
68 | 90 | | |
| |||
0 commit comments