mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 15:21:12 +00:00
add todo comment
This commit is contained in:
parent
c136bed955
commit
31bf658b20
2 changed files with 3 additions and 2 deletions
|
@ -1421,6 +1421,7 @@ fn decide_to_branching<'a>(
|
||||||
} => {
|
} => {
|
||||||
// generate a (nested) if-then-else
|
// generate a (nested) if-then-else
|
||||||
|
|
||||||
|
// TODO specialize layout in the true and false case?
|
||||||
let pass_expr = decide_to_branching(
|
let pass_expr = decide_to_branching(
|
||||||
env,
|
env,
|
||||||
procs,
|
procs,
|
||||||
|
|
|
@ -80,7 +80,7 @@ unsafe fn call_the_closure(function_pointer: *const u8, closure_data_ptr: *const
|
||||||
|
|
||||||
#[no_mangle]
|
#[no_mangle]
|
||||||
pub fn rust_main() -> isize {
|
pub fn rust_main() -> isize {
|
||||||
println!("Running Roc closure");
|
eprintln!("Running Roc closure");
|
||||||
let start_time = SystemTime::now();
|
let start_time = SystemTime::now();
|
||||||
|
|
||||||
let size = unsafe { roc_main_size() } as usize;
|
let size = unsafe { roc_main_size() } as usize;
|
||||||
|
@ -121,7 +121,7 @@ pub fn rust_main() -> isize {
|
||||||
let end_time = SystemTime::now();
|
let end_time = SystemTime::now();
|
||||||
let duration = end_time.duration_since(start_time).unwrap();
|
let duration = end_time.duration_since(start_time).unwrap();
|
||||||
|
|
||||||
println!(
|
eprintln!(
|
||||||
"Roc closure took {:.4} ms to compute this answer: {:?}",
|
"Roc closure took {:.4} ms to compute this answer: {:?}",
|
||||||
duration.as_secs_f64() * 1000.0,
|
duration.as_secs_f64() * 1000.0,
|
||||||
// truncate the answer, so stdout is not swamped
|
// truncate the answer, so stdout is not swamped
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue