This repository has been archived by the owner on Aug 28, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: save l2 l1 logs only if there are some (matter-labs#2139)
## What ❔ save l2 l1 logs for miniblock only if there are some ## Why ❔ We save l2 l1 logs using `COPY` and it appears it has some constant overhead of ~40ms regardless whether there is some data to copy or not. By checking if l2_l1_logs.is_empty we can save this 40ms. ## Checklist <!-- Check your PR fulfills the following items. --> <!-- For draft PRs check the boxes as you complete them. --> - [ ] PR title corresponds to the body of PR (we generate changelog entries from PRs). - [ ] Tests for the changes have been added / updated. - [ ] Documentation comments have been added / updated. - [ ] Code has been formatted via `zk fmt` and `zk lint`. - [ ] Spellcheck has been run via `zk spellcheck`.
- Loading branch information