Skip to content

tp: speed up critical_blocking_calls - #7774

Merged
nicomazz merged 1 commit into
mainfrom
dev/nicomazz/optimize-critical-blocking-calls
Oct 9, 2026
Merged

nicomazz merged 1 commit into
mainfrom
dev/nicomazz/optimize-critical-blocking-calls

Conversation

@nicomazz

@nicomazz nicomazz commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

Short-circuit the handler pattern globs on '*$*', filter matching names from slice before SELECT DISTINCT so android_standardize_slice_name() runs once per unique matching name instead of once per matching thread_slice row, and reuse the materialized thread_slice scan across downstream tables without redundant thread joins.

Benchmarks (android.critical_blocking_calls module load time)

Trace Slices main PR Speedup
2026-04-16_14-13-39dc56 207,259 516 ms 123 ms 4.20x
2026-05-11_14-16-487601 474,652 1,113 ms 247 ms 4.51x
2026-06-12_18-03-8c2956 1,028,094 2,868 ms 665 ms 4.31x

@github-actions

github-actions Bot commented Oct 5, 2026 •

Copy link
Copy Markdown

Short-circuit the handler pattern globs on '*$*', filter matching names
from slice before SELECT DISTINCT so android_standardize_slice_name()
runs once per unique matching name, and reuse the materialized
thread_slice scan across downstream tables without redundant thread
joins.

Speeds up android.critical_blocking_calls by ~4.3x across 200k-1M slice
traces with zero output diff against main.

Change-Id: Idcd067421346d3a743e3d4a4afb8b7226334c9bc
@nicomazz
nicomazz force-pushed the dev/nicomazz/optimize-critical-blocking-calls branch from 3d9ee54 to 0503949 Compare October 9, 2026 16:39
@nicomazz nicomazz changed the title tp: speed up critical_blocking_calls and android_cuj_blocking_calls tp: speed up critical_blocking_calls Oct 9, 2026
@nicomazz
nicomazz marked this pull request as ready for review October 9, 2026 16:46
@nicomazz
nicomazz requested a review from a team as a code owner October 9, 2026 16:46
@nicomazz
nicomazz enabled auto-merge (squash) October 9, 2026 16:46
@nicomazz
nicomazz merged commit 8267e72 into main Oct 9, 2026
31 checks passed
@nicomazz
nicomazz deleted the dev/nicomazz/optimize-critical-blocking-calls branch October 9, 2026 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants