Commit add2e51
perf: cache Type.GetType calls in VerifyResultsetColumns
Eliminates repeated Type.GetType reflection calls during result set
verification by caching resolved types in a ConcurrentDictionary.
Before: Type.GetType was called for every column in every result set
on every query execution when runtime verification is enabled.
After: Type resolution happens once per unique type name and is cached
for subsequent queries.
Impact: Significantly reduces reflection overhead in verification path,
especially for queries with many columns or high execution frequency.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent f8a4561 commit add2e51
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
| 130 | + | |
| 131 | + | |
130 | 132 | | |
131 | 133 | | |
132 | 134 | | |
| |||
262 | 264 | | |
263 | 265 | | |
264 | 266 | | |
265 | | - | |
| 267 | + | |
| 268 | + | |
266 | 269 | | |
267 | 270 | | |
268 | 271 | | |
| |||
0 commit comments