This repository was archived by the owner on Jan 23, 2023. It is now read-only.
- Notifications
You must be signed in to change notification settings - Fork4.9k
Commit07b4825
committed
Avoid boxing Int32 result per operation
- Change BufferAsyncResult to allow storing int result, without adding another field- Use that in both SslStream and NegotiateStream to avoid boxing an int per read and write- Also rename AsyncProtocolRequest.CompleteWithError to CompleteUserWithError, to avoid confusion and keep it consistent with the other CompleteUser methods.1 parent411c156 commit07b4825
File tree
7 files changed
+76
-70
lines changed- src/System.Net.Security/src/System/Net
- Security
7 files changed
+76
-70
lines changedLines changed: 45 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
5 | 7 | | |
6 | 8 | | |
7 | 9 | | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
11 | | - | |
| 13 | + | |
12 | 14 | | |
13 | | - | |
14 | | - | |
15 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
16 | 23 | | |
17 | 24 | | |
18 | 25 | | |
19 | 26 | | |
20 | 27 | | |
21 | 28 | | |
22 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
23 | 63 | | |
24 | 64 | | |
25 | 65 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
154 | | - | |
| 154 | + | |
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
| |||
Lines changed: 10 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
88 | 89 | | |
89 | 90 | | |
90 | 91 | | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
| 92 | + | |
98 | 93 | | |
99 | 94 | | |
100 | 95 | | |
| |||
137 | 132 | | |
138 | 133 | | |
139 | 134 | | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
| 135 | + | |
144 | 136 | | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
| 137 | + | |
149 | 138 | | |
150 | | - | |
| 139 | + | |
151 | 140 | | |
152 | | - | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
153 | 145 | | |
154 | 146 | | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
| 147 | + | |
159 | 148 | | |
160 | 149 | | |
Lines changed: 5 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
216 | 216 | | |
217 | 217 | | |
218 | 218 | | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
| 219 | + | |
223 | 220 | | |
224 | 221 | | |
225 | 222 | | |
| |||
283 | 280 | | |
284 | 281 | | |
285 | 282 | | |
286 | | - | |
287 | | - | |
288 | | - | |
289 | | - | |
| 283 | + | |
290 | 284 | | |
291 | 285 | | |
292 | 286 | | |
| |||
368 | 362 | | |
369 | 363 | | |
370 | 364 | | |
371 | | - | |
372 | | - | |
373 | | - | |
374 | | - | |
| 365 | + | |
375 | 366 | | |
376 | 367 | | |
377 | 368 | | |
| |||
410 | 401 | | |
411 | 402 | | |
412 | 403 | | |
413 | | - | |
| 404 | + | |
414 | 405 | | |
415 | 406 | | |
416 | 407 | | |
| |||
444 | 435 | | |
445 | 436 | | |
446 | 437 | | |
447 | | - | |
| 438 | + | |
448 | 439 | | |
449 | 440 | | |
450 | 441 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
625 | 625 | | |
626 | 626 | | |
627 | 627 | | |
628 | | - | |
| 628 | + | |
629 | 629 | | |
630 | 630 | | |
631 | 631 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1441 | 1441 | | |
1442 | 1442 | | |
1443 | 1443 | | |
1444 | | - | |
| 1444 | + | |
1445 | 1445 | | |
1446 | 1446 | | |
1447 | 1447 | | |
| |||
1725 | 1725 | | |
1726 | 1726 | | |
1727 | 1727 | | |
1728 | | - | |
| 1728 | + | |
1729 | 1729 | | |
1730 | 1730 | | |
1731 | 1731 | | |
| |||
Lines changed: 12 additions & 26 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
172 | | - | |
| 172 | + | |
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
| |||
495 | 495 | | |
496 | 496 | | |
497 | 497 | | |
498 | | - | |
| 498 | + | |
499 | 499 | | |
500 | 500 | | |
501 | 501 | | |
| |||
522 | 522 | | |
523 | 523 | | |
524 | 524 | | |
525 | | - | |
526 | | - | |
527 | | - | |
| 525 | + | |
528 | 526 | | |
529 | 527 | | |
530 | 528 | | |
| |||
580 | 578 | | |
581 | 579 | | |
582 | 580 | | |
583 | | - | |
584 | | - | |
585 | | - | |
586 | | - | |
| 581 | + | |
587 | 582 | | |
588 | 583 | | |
589 | 584 | | |
| |||
633 | 628 | | |
634 | 629 | | |
635 | 630 | | |
636 | | - | |
637 | | - | |
638 | | - | |
639 | | - | |
| 631 | + | |
640 | 632 | | |
641 | 633 | | |
642 | 634 | | |
| |||
728 | 720 | | |
729 | 721 | | |
730 | 722 | | |
731 | | - | |
732 | | - | |
733 | | - | |
734 | | - | |
| 723 | + | |
735 | 724 | | |
736 | 725 | | |
737 | 726 | | |
| |||
752 | 741 | | |
753 | 742 | | |
754 | 743 | | |
755 | | - | |
756 | | - | |
757 | | - | |
758 | | - | |
| 744 | + | |
759 | 745 | | |
760 | 746 | | |
761 | 747 | | |
| |||
801 | 787 | | |
802 | 788 | | |
803 | 789 | | |
804 | | - | |
| 790 | + | |
805 | 791 | | |
806 | 792 | | |
807 | 793 | | |
| |||
823 | 809 | | |
824 | 810 | | |
825 | 811 | | |
826 | | - | |
| 812 | + | |
827 | 813 | | |
828 | 814 | | |
829 | 815 | | |
| |||
845 | 831 | | |
846 | 832 | | |
847 | 833 | | |
848 | | - | |
| 834 | + | |
849 | 835 | | |
850 | 836 | | |
851 | 837 | | |
| |||
869 | 855 | | |
870 | 856 | | |
871 | 857 | | |
872 | | - | |
| 858 | + | |
873 | 859 | | |
874 | 860 | | |
875 | 861 | | |
| |||
893 | 879 | | |
894 | 880 | | |
895 | 881 | | |
896 | | - | |
| 882 | + | |
897 | 883 | | |
898 | 884 | | |
899 | 885 | | |
| |||
0 commit comments
Comments
(0)