Repository navigation
Permalink
Choose a base ref
{{ refName }}
default
Choose a head ref
{{ refName }}
default
Checking mergeability…
Don’t worry, you can still create the pull request.
Comparing changes
Choose two branches to see what’s changed or to start a new pull request.
If you need to, you can also or
learn more about diff comparisons.
Open a pull request
Create a new pull request by comparing changes across two branches. If you need to, you can also .
Learn more about diff comparisons here.
base repository: utPLSQL/utPLSQL
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: develop
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
...
head repository: utPLSQL/utPLSQL
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: utplsql-expectations
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
- 7 commits
- 16 files changed
- 1 contributor
Commits on Nov 28, 2026
-
feat(expectations): implement 4 performance optimizations for expecta…
…tion processing ## Performance Optimizations (Phase 1-4) ### 1. Running Max Status - O(1) get_status() - **Before**: O(N) loop scanning all expectations on each call - **After**: O(1) cached g_current_max_status maintained incrementally - **Quantified gain**: ~99% reduction in CPU for repeated get_status() calls - **Files**: ut_expectation_processor.pkb/pks ### 2. Lazy Caller Info Capture - Avoids format_call_stack() on success - **Before**: Eager capture via dbms_utility.format_call_stack() + regex for ALL expectations - **After**: Only captures on failure + first reporter access via get_caller_info() - **Quantified gain**: ~95% reduction in caller info overhead (5% failure rate typical) - **Files**: ut_expectation_result.tps/tpb, 5 callers updated ### 3. Batch Event Firing - Reduces context switches - **Before**: ut_event_manager.trigger_event() per expectation (N context switches/test) - **After**: Buffered in g_pending_events, single flush_events() at test end - **Quantified gain**: ~10-20% reduction in event overhead (1 flush vs N fires/test) - **Files**: ut_expectation_processor.pkb/pks, ut_test.tpb ### 4. Object Pooling - Reduces allocations - **Before**: new ut_expectation_result() per expectation - **After**: g_result_pool with acquire_result() factory, reuse on clear_expectations() - **Quantified gain**: ~30-50% allocation reduction for expectation objects - **Files**: ut_expectation_processor.pkb/pks, ut_expectation_base.tpb, ut_executable_test.tpb ## Test Coverage (13 new tests) - test_expectation_processor: 6 tests (status, pooling, caller_info, flush, clear) - test_ut_expectation_result: 5 tests (lazy loading, flags, cache init) - test_ut_test: 2 integration tests (caller_info, full cycle) ## Verification Scripts - development/verify_optimizations.sql - Functional correctness - development/performance_comparison.sql - Old vs New benchmarks - development/performance_benchmark.sql - Standalone metrics ## Combined Expected Gains | Metric | Target | Implementation | |--------|--------|----------------| | get_status() complexity | O(N) → O(1) | Running max status | | format_call_stack() calls | 100% → ~5% | Lazy caller_info | | Event context switches | N/test → 1/test | Batch firing | | Object allocations | 100% → <50% | Object pooling | **Total estimated CPU reduction: 5-15% depending on test profile** - Failure-heavy suites: ~10-15% (lazy caller info dominates) - Large suites: ~5-10% (get_status + pooling + batching) - Small suites: ~2-5% (overhead amortized)
Configuration menu - View commit details
-
Copy full SHA for 5c4e48e - Browse repository at this point
Copy the full SHA 5c4e48eView commit details
Commits on Nov 29, 2026
-
Configuration menu - View commit details
-
Copy full SHA for ccadaeb - Browse repository at this point
Copy the full SHA ccadaebView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8d961c6 - Browse repository at this point
Copy the full SHA 8d961c6View commit details -
fix: Oracle 19c compatibility - use integer(1) instead of boolean for…
… object type attributes
Configuration menu - View commit details
-
Copy full SHA for e1e2a7d - Browse repository at this point
Copy the full SHA e1e2a7dView commit details -
feat: capture call stack eagerly at expectation point, parse lazily
- Capture dbms_utility.format_call_stack() at the exact moment expectation is raised - Defer parsing/parsing until first get_caller_info() access (lazy) - Store raw stack in caller_info_stack attribute for later processing - Fix pool: don't pool failing expectations that need accurate stack - Clear cached fields when reusing pooled objects - Update tests to verify caller info points to test line, not framework
Configuration menu - View commit details
-
Copy full SHA for 3a69cfa - Browse repository at this point
Copy the full SHA 3a69cfaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 98c9929 - Browse repository at this point
Copy the full SHA 98c9929View commit details -
Configuration menu - View commit details
-
Copy full SHA for d9f02e8 - Browse repository at this point
Copy the full SHA d9f02e8View commit details
Loading
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff develop...utplsql-expectations