Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Jonas Wanke <[email protected]>
  • Loading branch information
MarcelGarus and JonasWanke authored Feb 23, 2023
1 parent a4ebf7a commit 2baa728
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion compiler/frontend/src/hir_to_mir.rs
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ impl<'a> LoweringContext<'a> {
body.push_call(
builtin_if_else,
vec![is_match, then_lambda, else_lambda],
responsible_for_needs,
responsible_for_match,
)
}
}
Expand Down
10 changes: 5 additions & 5 deletions packages/Core/fixedDecimal.candy
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# As soon as tags or value hiding is supported, change fixed point numbers to
# TODO: As soon as tags or value hiding is supported, change fixed point numbers to
# that. Currently, they're just normal ints.

bool = use "..bool"
Expand All @@ -14,16 +14,16 @@ decimalsPow = 10000000
is := int.is

fromInt a :=
needs (is a)
int.multiply a decimalsPow
needs (int.is a)
a | int.multiply decimalsPow

floorToInt a :=
needs (is a)
int.divideTruncating a decimalsPow
a | int.divideTruncating decimalsPow

isNonNegative a :=
needs (is a)
int.isNonNegative a
a | int.isNonNegative

add a b :=
needs (is a)
Expand Down

1 comment on commit 2baa728

@jwbot
Copy link
Collaborator

@jwbot jwbot commented on 2baa728 Feb 23, 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: 2baa728 Previous: 22fe978 Ratio
Time: Compiler/hello_world 30474746 ns/iter (± 976729) 29031946 ns/iter (± 1363210) 1.05
Time: Compiler/fibonacci 727034991 ns/iter (± 17005604) 708862818 ns/iter (± 22941978) 1.03
Time: VM Runtime/hello_world 23898831 ns/iter (± 603023) 22144452 ns/iter (± 1511125) 1.08
Time: VM Runtime/fibonacci/15 212976859 ns/iter (± 1486307) 245913884 ns/iter (± 4986800) 0.87

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

Please sign in to comment.