Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:23
erlang
3421-beam_ssa_type-Slightly-optimize-a-list-com...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 3421-beam_ssa_type-Slightly-optimize-a-list-comprehension.patch of Package erlang
From b4eb84b6d92ba9494891447469797487c601bd04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Gustavsson?= <bjorn@erlang.org> Date: Wed, 24 Feb 2021 04:59:21 +0100 Subject: [PATCH 1/3] beam_ssa_type: Slightly optimize a list comprehension filter Move the record extraction out of the loop. --- lib/compiler/src/beam_ssa_type.erl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/compiler/src/beam_ssa_type.erl b/lib/compiler/src/beam_ssa_type.erl index dc618d1c3f..2fa8f0dcf5 100644 --- a/lib/compiler/src/beam_ssa_type.erl +++ b/lib/compiler/src/beam_ssa_type.erl @@ -180,7 +180,8 @@ do_sig_function(Id, StMap, State0, FuncDb0) -> end, #func_info{in=Cs0} = map_get(Id, FuncDb0), - Callers = [C || C <- Cs0, is_map_key(C, State#sig_st.updates)], + Updates = State#sig_st.updates, + Callers = [C || C <- Cs0, is_map_key(C, Updates)], Wl = wl_defer_list(Callers, Wl0), {State#sig_st{wl=Wl}, FuncDb} -- 2.26.2
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor