-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
compiler: Avoid reuse hint for update_record with > 1 update
Take care to not produce a reuse hint when more than one update exists. There is no point in attempting the reuse optimization when more than one element is updated, as checking more than one element at runtime is known to be slower than just copying the tuple in most cases. Additionally, using a copy hint occasionally allows the alias analysis pass to do a better job.
- Loading branch information
Showing
2 changed files
with
18 additions
and
4 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
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