Skip to content

Conversation

@mattevans
Copy link
Member

Introduce dual-mode processing (RPC vs embedded) in StructLog to reduce memory pressure. Embedded mode pre-computes GasUsed and CallToAddress in the tracer, avoiding post-processing passes and stack allocations.

  • Add GasUsed and CallToAddress fields to StructLog
  • Document operation modes and field semantics
  • Extract call address via new helper, supporting both modes
  • Add opcode constants and isCallOpcode utility

…ack allocations

Introduce dual-mode processing (RPC vs embedded) in StructLog to reduce
memory pressure. Embedded mode pre-computes GasUsed and CallToAddress
in the tracer, avoiding post-processing passes and stack allocations.

- Add GasUsed and CallToAddress fields to StructLog
- Document operation modes and field semantics
- Extract call address via new helper, supporting both modes
- Add opcode constants and isCallOpcode utility
@mattevans mattevans self-assigned this Jan 22, 2026
@mattevans mattevans requested a review from Savid as a code owner January 22, 2026 07:02
… for embedded mode

Reduces memory pressure by skipping full stack capture; the tracer
already extracts CallToAddress directly for CALL-family opcodes.
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.

2 participants