Skip to content
This repository has been archived by the owner on Dec 3, 2024. It is now read-only.

Do not call payload.num_transactions() #211

Merged
merged 1 commit into from
Jul 19, 2024
Merged

Conversation

lukaszrzasik
Copy link
Contributor

Closes #<ISSUE_NUMBER>

This PR:

This PR just substitutes a call to payload.num_transactions() with self.tx_queue.len() which gives the same results.
payload.num_transactions() looks deceptively harmless but the implementation in Payload is very cpu heavy.
I see big performance improvement with just this change.

This PR does not:

Unfortunately does not fix the current builder issues. Builder works visibly faster but is still very cpu-heavy and the sequencer times out waiting for the blocks.

Key places to review:

@lukaszrzasik lukaszrzasik requested a review from QuentinI July 19, 2024 10:43
@lukaszrzasik lukaszrzasik merged commit 30aca97 into main Jul 19, 2024
5 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants