forked from bytecodealliance/wasm-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove quadratic behavior cloning rec groups (bytecodealliance#1952)
The call to `clone_rec_group` would create a new vector each time it was called of all clonable rec groups where if an empty rec group is cloned this creates quadratic behavior where each time a vector is created and one more item is appended. The fix in this commit is to avoid creating a precise set of candidates to clone and just throwing out candidates that aren't applicable.
- Loading branch information
1 parent
57f4e91
commit 9366531
Showing
1 changed file
with
13 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters