You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OPTIMIZATION #3: Metadata prefetch caching to eliminate repeated lookups
- Added PERF_TIMER for metadata prefetch measurement
- Pre-fetch column metadata (dataType, columnSize, processedColumnSize, fetchBufferSize, isLob) into local variables before column loop
- Eliminates repeated access to colInfo struct fields within switch cases
- Moves metadata extraction from O(rows × columns) to O(columns) per batch
- Updated SQL_CHAR, SQL_WCHAR, SQL_BINARY cases to use cached values
- This was the biggest bottleneck - dictionary lookups in hot path
0 commit comments