diff options
| author | Paul Buetow <paul@buetow.org> | 2026-03-18 08:51:33 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-03-18 08:51:33 +0200 |
| commit | 6ab80599c8f8ba688a0415ecbeb03e494ef31f04 (patch) | |
| tree | c0c831f29bddb1754629eb337f5ec8bc9efae983 /internal/tui | |
| parent | d8ef4ac43d3039c3d583c1ac20c7dca6b69a6c92 (diff) | |
refactor: replace reflect.TypeOf dispatch in exit handlers with type switch (task 432)
The exitHandlers map keyed by reflect.Type was a reflection-based dispatch
table that incurred allocation and reflection overhead on every event pair
in the hot processing path. Replace it with a plain type switch in
handleTracepointExit, which the compiler resolves statically.
Removes: initExitHandlers, typeKey, mustBeType, newTypedExitHandler,
exitHandlerRegistry, the exitHandlers struct field, and the tracepointExitHandler
type alias — all dead after the switch. Fixes a pre-existing uint→uint64
mismatch in stats(). Updates tests to target the new default branch directly.
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'internal/tui')
0 files changed, 0 insertions, 0 deletions
