Skip to content

Conversation

@abrown
Copy link
Member

@abrown abrown commented Sep 18, 2025

While queueing bundles, I noticed that we compute the priority of the bundle (i.e., the number of instructions) twice: once directly in Env::queue_bundles and again within
Env::recompute_bundle_properties. This change removes the first instance, saving some small amount of time iterating over the bundle's ranges.

While queueing bundles, I noticed that we compute the priority of the
bundle (i.e., the number of instructions) twice: once directly in
`Env::queue_bundles` and again within
`Env::recompute_bundle_properties`. This change removes the first
instance, saving some small amount of time iterating over the bundle's
ranges.
Copy link
Member

@cfallin cfallin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good find, thanks!

@cfallin cfallin merged commit 454cd01 into bytecodealliance:main Sep 18, 2025
6 checks passed
@abrown abrown deleted the less-prio-recompute branch September 18, 2025 17:44
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.

2 participants