perf(fuzz): share override function lists - #16650
Open
figtracer wants to merge 2 commits into
Open
Conversation
Store each override target's functions in an Arc so each generated call clones a shared handle instead of every function and ABI parameter. Preserve the existing target selection, fallback, and shrinking behavior. In a profiling-build generation microbenchmark against master 2492dc0, 128-function targets fell from 13.92 us to 2.52 us per call (5.52x), and 1024-function targets fell from 92.50 us to 2.63 us (35.22x). These are component measurements, not whole-Forge speedups.
Contributor
✅ Changelog foundThe deterministic check will validate the changed entry. |
figtracer
marked this pull request as ready for review
September 4, 2026 22:40
figtracer
requested review from
0xrusowsky,
DaniPopes,
grandizzy,
mablr,
mattsse and
stevencartavia
as code owners
September 4, 2026 22:40
DaniPopes
reviewed
Sep 4, 2026
DaniPopes
previously approved these changes
Sep 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Share each override target's function list through
Arcso generating a call clones a handle instead of every function and ABI parameter. Target selection, fallback selection, public APIs, and shrinking remain unchanged. The regression test covers target changes, unknown-target fallback, valid calldata, and shrinking; a separate comparison matched 256 seeded baseline/candidate sequences and their shrink steps. Code, tests, and benchmark analysis were produced with Codex assistance.Results
Compared with master
2492dc059using the profiling build on Apple Silicon. The syntheticfoundry-scfuzzbenchworkload has 128 handler functions, call overrides enabled, depth 64, one worker, seed0x1234, and a fresh corpus. Each revision ran one 20-second campaign. Generation timings are medians of nine alternating batches of 2,000 calls, with three ABI parameters per function.These gains are specific to synthetic call-override workloads; the one-function generation case was effectively neutral. Campaign variance across runs and projects remains unmeasured.