blobscan
blobscan copied to clipboard
Optimize chunks function in optimism-decoder for better performance
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.
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 |