Commit b0c45d0
committed
OPTIMIZATION #1: Direct PyUnicode_DecodeUTF16 for string conversion (Linux/macOS)
- Eliminates intermediate std::wstring allocation and SQLWCHARToWString conversion
- Uses Python C API PyUnicode_DecodeUTF16 directly for UTF-16 encoded SQLWCHAR data
- Reduces memory allocations and conversion overhead
- Linux/macOS only - Windows uses native wchar_t
- Added PERF_TIMER for wstring_conversion measurement1 parent 9142cdc commit b0c45d0
1 file changed
+14
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3319 | 3319 | | |
3320 | 3320 | | |
3321 | 3321 | | |
| 3322 | + | |
3322 | 3323 | | |
3323 | 3324 | | |
3324 | 3325 | | |
| |||
3329 | 3330 | | |
3330 | 3331 | | |
3331 | 3332 | | |
3332 | | - | |
3333 | | - | |
| 3333 | + | |
| 3334 | + | |
| 3335 | + | |
| 3336 | + | |
| 3337 | + | |
| 3338 | + | |
| 3339 | + | |
| 3340 | + | |
| 3341 | + | |
| 3342 | + | |
| 3343 | + | |
| 3344 | + | |
| 3345 | + | |
3334 | 3346 | | |
3335 | 3347 | | |
3336 | 3348 | | |
| |||
0 commit comments