Skip to content

Commit

Permalink
Remove leftover debug statements
Browse files Browse the repository at this point in the history
Co-authored-by: Marcel Garus <marcel.garus@gmail.com>
  • Loading branch information
JonasWanke and MarcelGarus committed Feb 3, 2023
1 parent e2f4829 commit 2963fcf
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions compiler/src/compiler/hir_to_mir.rs
Expand Up @@ -621,27 +621,23 @@ impl<'a> PatternLoweringContext<'a> {
let captured_identifiers_order = first_pattern.captured_identifiers();
let list_get_function = body.push_builtin(BuiltinFunction::ListGet);
let nothing = body.push_nothing();
dbg!(&captured_identifiers_order);

for pattern in rest_patterns {
let is_match = body.push_is_match(result, self.responsible);
result = body.push_if_else(
is_match,
|body| {
let captured_identifiers = pattern.captured_identifiers();
dbg!(&captured_identifiers);
if captured_identifiers == captured_identifiers_order {
body.push_reference(result);
} else {
let captured_identifiers = captured_identifiers_order
.iter()
.map(|identifier_id| {
dbg!(identifier_id);
captured_identifiers
.iter()
.position(|it| it == identifier_id)
.map(|index| {
dbg!(index);
let index = body.push_int((1 + index).into());
body.push_symbol("Blub".to_string());
body.push_call(
Expand Down

1 comment on commit 2963fcf

@jwbot
Copy link
Collaborator

@jwbot jwbot commented on 2963fcf Feb 3, 2023

Choose a reason for hiding this comment

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

Compiler

Benchmark suite Current: 2963fcf Previous: 8030dde Ratio
Time: Compiler/hello_world 25549100 ns/iter (± 2582075) 24109145 ns/iter (± 349937) 1.06
Time: Compiler/fibonacci 542658315 ns/iter (± 3571568) 538104078 ns/iter (± 5033559) 1.01
Time: VM Runtime/hello_world 20379657 ns/iter (± 345697) 19013214 ns/iter (± 343731) 1.07
Time: VM Runtime/fibonacci/15 204019916 ns/iter (± 2451389) 202563219 ns/iter (± 1162003) 1.01

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.