Skip to content

Optimize MLOAD memory fast path#8

Merged
Giulio2002 merged 1 commit into
masterfrom
optimize-mload-fast-path
May 16, 2026
Merged

Optimize MLOAD memory fast path#8
Giulio2002 merged 1 commit into
masterfrom
optimize-mload-fast-path

Conversation

@Giulio2002
Copy link
Copy Markdown
Owner

Summary

  • avoid helper calls in the inlined MLOAD fast path by reading directly from the current memory buffer
  • skip recopying bytecode in ResetWithHash when the pooled bytecode already has the same hash and length
  • regenerate the VM dispatch table

Benchmarks

  • BenchmarkOpcode/MLOAD: 9.766ms -> 8.926ms (-8.60%)
  • BenchmarkDataMovement/KeccakSizes geomean: 14.00ms -> 13.49ms (-3.64%)

Tests

  • go test ./... -count=1
  • git diff --check

@Giulio2002 Giulio2002 merged commit dedeeea into master May 16, 2026
1 check passed
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.

1 participant