Commit 319cf08
perf: apply TDS performance optimisations from C# port
- TDSLogin7: negotiate 32KB packet size (was 4096) — reduces packet count ~8x
- sendPacket: coalesce all TDS fragments into single ByteBuffer, one writeAndFlush
instead of N channel.write() calls per large request
- TDSDecoder.decodeNbcRow: replace readBytes() heap copy with zero-copy readSlice()
and getInteger(at:) for null bitmap access
Mirrors the same three fixes applied to CosmoSQLClient-Dotnet (commit 04ad1f5)
which yielded 1–21% throughput improvement over Microsoft.Data.SqlClient.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 203e0d4 commit 319cf08
3 files changed
Lines changed: 20 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
751 | 751 | | |
752 | 752 | | |
753 | 753 | | |
754 | | - | |
755 | | - | |
| 754 | + | |
756 | 755 | | |
757 | | - | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
758 | 764 | | |
759 | 765 | | |
760 | 766 | | |
761 | 767 | | |
762 | 768 | | |
763 | | - | |
| 769 | + | |
764 | 770 | | |
765 | 771 | | |
766 | 772 | | |
| |||
769 | 775 | | |
770 | 776 | | |
771 | 777 | | |
772 | | - | |
773 | | - | |
774 | | - | |
775 | | - | |
776 | | - | |
777 | | - | |
778 | | - | |
779 | | - | |
780 | | - | |
781 | | - | |
782 | | - | |
783 | | - | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
784 | 781 | | |
785 | 782 | | |
786 | 783 | | |
| 784 | + | |
| 785 | + | |
787 | 786 | | |
788 | 787 | | |
789 | 788 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
161 | | - | |
| 161 | + | |
| 162 | + | |
162 | 163 | | |
163 | 164 | | |
164 | 165 | | |
165 | 166 | | |
166 | 167 | | |
167 | | - | |
| 168 | + | |
168 | 169 | | |
169 | | - | |
| 170 | + | |
170 | 171 | | |
171 | 172 | | |
172 | 173 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
0 commit comments