Commit 232b39d
Speed up pre-10.2 dbms_output spec by ~0.33s
The "should log output when database version is less than 10.2"
example in spec/plsql/schema_spec.rb stubs database_version to
[9, 2, 0, 0] so dbms_output retrieval falls into the per-line
DBMS_OUTPUT.GET_LINE loop in PLSQL::ProcedureCall#dbms_output_lines
instead of the batched DBMS_OUTPUT.GET_LINES path used on 10.2+.
With times = 2_000 each iteration is one parse-and-exec round-trip,
which is what made this example the second-slowest in the suite at
~0.42s. The intent of the example is to verify the alternate
per-line code path works at all — 100 iterations exercise it just
as well as 2_000 (the buffer-size assertions live in the
unmocked examples right above).
Drop times to 100. Verified stable across three back-to-back runs at
~0.09s each. After this and the threaded-cursor change, the
slowest-examples profile is much more even (top spec is now ~0.33s).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent ddb551b commit 232b39d
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
352 | 352 | | |
353 | 353 | | |
354 | 354 | | |
355 | | - | |
| 355 | + | |
356 | 356 | | |
357 | 357 | | |
358 | 358 | | |
| |||
0 commit comments