blobscan icon indicating copy to clipboard operation
blobscan copied to clipboard

Optimize chunks function in optimism-decoder for better performance

Open reallesee opened this issue 7 months ago • 1 comments

Checklist

  • [ ] My change requires a documentation update, and I have done it.
  • [x] I have added tests to cover my changes.
  • [ ] I have filled out the description and linked the related issues.

Description

Pre-allocate result array instead of using push() to eliminate multiple memory reallocations when processing large binary blobs. This reduces garbage collection overhead and improves memory efficiency while maintaining identical functionality. Critical optimization for processing large blob data.

reallesee avatar Jul 12 '25 15:07 reallesee

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
blobscan-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 12, 2025 3:10pm

vercel[bot] avatar Jul 12 '25 15:07 vercel[bot]